Label Designer: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="width:100%;font-family:Arial,sans-serif;font-size:16px;line-height:1.6;color:#222;">
<div style="width:100%;font-family:Arial,sans-serif;font-size:16px;line-height:1.6;color:#222;">
<div style="width:100%;">
<div style="width:100%;">
<h1>Guide d’utilisation de Label Designer</h1>
<h1>Label Designer User Guide</h1>
<p style="line-height:1.6;"><strong>Version du module<span> </span>:</strong> 1.0.0<br><strong>Compatibilité déclarée<span> </span>:</strong> Dolibarr 15.0+, PHP 7.1+<br><strong>Dernière vérification documentaire<span> </span>:</strong> 2026-09-26</p>
<p style="line-height:1.6;"><strong>Module version:</strong> 1.0.0<br><strong>Declared compatibility:</strong> Dolibarr 15.0+, PHP 7.1+<br><strong>Last documentation review:</strong> 2026-09-30</p>
<p><strong>Vidéo de démonstration<span> </span>:</strong></p>
<p><strong>Demo video:</strong></p>
<p><iframe width="200" height="120" src="//www.youtube-nocookie.com/embed/Hcec6UGBJtI?" frameborder="0" allowfullscreen=""></iframe></p>
<youtube width="560" height="315">Hcec6UGBJtI</youtube>
<p><strong>Site de démonstration<span> </span>:</strong> [https://01consulting.eu/demo/htdocs/ Ouvrir le site]</p>
<p><strong>Demo site:</strong> [https://01consulting.eu/demo/htdocs/ Open the demo site]</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Ce document décrit, étape par étape, l’installation, la configuration et l’utilisation du module <strong>Label Designer 1.0.0</strong> pour Dolibarr.</p>
<p><strong>Publisher website:</strong> [https://01consulting.eu 01consulting.eu]</p>
<h2 id="sec-1">1. Présentation du module</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">This guide describes, step by step, how to install, configure, and use Label Designer 1.0.0 for Dolibarr.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Label Designer permet de créer des modèles d’étiquettes visuellement, puis de générer des fichiers PDF à partir des données présentes dans Dolibarr.</p>
<h2 id="sec-1">1. Module overview</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">Le module prend en charge quatre types d’objets<span> </span>:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Label Designer lets you visually create label templates and generate PDF files using data stored in Dolibarr.</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">les produits et services ;</li><li style="margin:0 0 4px 0;">les lots de produits ;</li><li style="margin:0 0 4px 0;">les entrepôts ;</li><li style="margin:0 0 4px 0;">les tiers (clients et fournisseurs).</li></ul>
<p style="margin:0 0 14px 0;line-height:1.6;">The module supports four object types:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Un modèle est créé pour chaque type d’objet. Ce modèle est réutilisé automatiquement<span> </span>: il n’est donc pas nécessaire de concevoir une étiquette différente pour chaque produit, lot, entrepôt ou tiers. Lors de la génération du PDF, les variables du modèle sont remplacées par les données de l’objet courant.</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">products and services;</li><li style="margin:0 0 4px 0;">product batches;</li><li style="margin:0 0 4px 0;">warehouses;</li><li style="margin:0 0 4px 0;">third parties (customers and suppliers).</li></ul>
<h2 id="sec-2">2. Prérequis</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">One template is created for each object type and reused automatically. You do not need a separate label for every product, batch, warehouse, or third party. When a PDF is generated, template variables are replaced with the current object's data.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Avant l’installation, vérifier les éléments suivants<span> </span>:</p>
<h2 id="sec-2">2. Requirements</h2>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Dolibarr 15 ou une version supérieure est installé ;</li><li style="margin:0 0 4px 0;">PHP 7.1 ou une version supérieure est disponible ;</li><li style="margin:0 0 4px 0;">le module <strong>Codes-barres</strong> de Dolibarr est disponible ;</li><li style="margin:0 0 4px 0;">le serveur web dispose d’un accès en écriture au répertoire des documents Dolibarr.</li></ul>
<p style="margin:0 0 14px 0;line-height:1.6;">Before installation, check that:</p>
<h2 id="sec-3">3. Installation et activation</h2>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Dolibarr 15 or later is installed;</li><li style="margin:0 0 4px 0;">PHP 7.1 or later is available;</li><li style="margin:0 0 4px 0;">Dolibarr's <strong>Barcodes</strong> module is available;</li><li style="margin:0 0 4px 0;">the web server can write to the Dolibarr documents directory.</li></ul>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Copier le dossier <code>labeldesigner</code> dans <code>htdocs/custom/</code>.</li><li style="margin:0 0 4px 0;">Se connecter à Dolibarr avec un compte administrateur.</li><li style="margin:0 0 4px 0;">Ouvrir <strong>Accueil &gt; Configuration &gt; Modules/Applications</strong>.</li><li style="margin:0 0 4px 0;">Rechercher <strong>Label Designer</strong>.</li><li style="margin:0 0 4px 0;">Activer le module.</li><li style="margin:0 0 4px 0;">Vérifier que le module <strong>Codes-barres</strong> est également activé.</li></ol>
<h2 id="sec-3">3. Installation and activation</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">Lors de son activation, Label Designer prépare son répertoire de stockage dans les documents Dolibarr et active l’utilisation des codes-barres pour les produits et les tiers.</p>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Copy the <code>labeldesigner</code> directory to <code>htdocs/custom/</code>.</li><li style="margin:0 0 4px 0;">Sign in to Dolibarr with an administrator account.</li><li style="margin:0 0 4px 0;">Go to <strong>Home &gt; Setup &gt; Modules/Applications</strong>.</li><li style="margin:0 0 4px 0;">Find <strong>Label Designer</strong>.</li><li style="margin:0 0 4px 0;">Enable the module.</li><li style="margin:0 0 4px 0;">Make sure the <strong>Barcodes</strong> module is also enabled.</li></ol>
<h2 id="sec-4">4. Configuration des droits utilisateurs</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">When activated, Label Designer prepares its storage directory in Dolibarr documents and enables barcode use for products and third parties.</p>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Ouvrir la fiche de l’utilisateur ou du groupe concerné.</li><li style="margin:0 0 4px 0;">Accéder à l’onglet <strong>Permissions</strong>.</li><li style="margin:0 0 4px 0;">Accorder les droits Label Designer nécessaires<span> </span>:<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">lecture des étiquettes ;</li><li style="margin:0 0 4px 0;">création et modification des modèles et des PDF.</li></ul></li><li style="margin:0 0 4px 0;">Vérifier que l’utilisateur possède aussi le droit de consulter l’objet concerné<span> </span>: produit, lot, entrepôt ou tiers.</li></ol>
<h2 id="sec-4">4. Configure user permissions</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">Sans les permissions de l’objet, certaines données ou variables peuvent ne pas être accessibles.</p>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Open the relevant user or group record.</li><li style="margin:0 0 4px 0;">Open the <strong>Permissions</strong> tab.</li><li style="margin:0 0 4px 0;">Grant the required Label Designer permissions:<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">read labels;</li><li style="margin:0 0 4px 0;">create and modify templates and PDFs.</li></ul></li><li style="margin:0 0 4px 0;">Make sure the user can also view the relevant object: product, batch, warehouse, or third party.</li></ol>
<p style="margin:0 0 14px 0;line-height:1.6;">Après une mise à jour ayant ajouté ou modifié les permissions du module, désactiver puis réactiver Label Designer afin que Dolibarr enregistre les nouvelles permissions. Il est ensuite possible d’accorder séparément <strong>Lire les étiquettes</strong> et <strong>Créer les étiquettes</strong> aux utilisateurs et aux groupes.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Without permission to view the object, some data or variables may not be available.</p>
<h2 id="sec-5">5. Accéder à une étiquette</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">After an update that adds or changes module permissions, disable and re-enable Label Designer so Dolibarr registers the new permissions. You can then grant <strong>Read labels</strong> and <strong>Create labels</strong> separately to users and groups.</p>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Ouvrir la fiche d’un produit, d’un lot, d’un entrepôt ou d’un tiers.</li><li style="margin:0 0 4px 0;">Cliquer sur l’onglet <strong>Étiquette</strong> appartenant à Label Designer.</li><li style="margin:0 0 4px 0;">La page affiche<span> </span>:<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">les paramètres de l’étiquette ;</li><li style="margin:0 0 4px 0;">le bouton <strong>Card Designer</strong> ;</li><li style="margin:0 0 4px 0;">le bouton <strong>Réinitialiser les paramètres</strong> ;</li><li style="margin:0 0 4px 0;">la zone des fichiers PDF générés ;</li><li style="margin:0 0 4px 0;">le bouton <strong>Générer</strong>.</li></ul></li></ol>
<h2 id="sec-5">5. Open a label</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">Si un autre module ajoute également un onglet nommé <strong>Étiquette</strong>, identifier celui de Label Designer à partir de son adresse ou de son contenu.</p>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Open a product, batch, warehouse, or third-party record.</li><li style="margin:0 0 4px 0;">Click the <strong>Label</strong> tab provided by Label Designer.</li><li style="margin:0 0 4px 0;">The page displays:<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">label settings;</li><li style="margin:0 0 4px 0;">the <strong>Card Designer</strong> button;</li><li style="margin:0 0 4px 0;">the <strong>Reset settings</strong> button;</li><li style="margin:0 0 4px 0;">the generated PDF files area;</li><li style="margin:0 0 4px 0;">the <strong>Generate</strong> button.</li></ul></li></ol>
<h2 id="sec-6">6. Régler les paramètres de l’étiquette</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">If another module also adds a tab named <strong>Label</strong>, identify the Label Designer tab by its URL or content.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Les paramètres sont enregistrés séparément pour chaque type d’objet.</p>
<h2 id="sec-6">6. Set label parameters</h2>
<div style="overflow-x:auto;margin:12px 0 20px 0;">
<p style="margin:0 0 14px 0;line-height:1.6;">Settings are stored separately for each object type.</p>
<thead style="background:#f8f9fa;"></thead><tbody></tbody><table border="1" style="width:100%;border-collapse:collapse;border-color:#dee2e6;text-align:left;"><tr><th style="padding:10px;border:1px solid #dee2e6;">Paramètre</th><th style="padding:10px;border:1px solid #dee2e6;">Utilisation</th></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Largeur du document</td><td style="padding:10px;border:1px solid #dee2e6;">Largeur finale d’une étiquette, en millimètres</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Hauteur du document</td><td style="padding:10px;border:1px solid #dee2e6;">Hauteur finale d’une étiquette, en millimètres</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Largeur du code-barres</td><td style="padding:10px;border:1px solid #dee2e6;">Largeur du code-barres dans le modèle et le PDF</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Hauteur du code-barres</td><td style="padding:10px;border:1px solid #dee2e6;">Hauteur du code-barres dans le modèle et le PDF</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Largeur des barres</td><td style="padding:10px;border:1px solid #dee2e6;">Épaisseur visuelle des barres, entre 0,2 et 1,0 mm</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Taille pixel</td><td style="padding:10px;border:1px solid #dee2e6;">Résolution de génération du QR code ; valeur par défaut<span> </span>: 250</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Afficher la valeur du code-barres</td><td style="padding:10px;border:1px solid #dee2e6;">Affiche ou masque le texte sous le code-barres</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Nombre d’étiquettes horizontalement</td><td style="padding:10px;border:1px solid #dee2e6;">Nombre de copies placées horizontalement dans le PDF final</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Nombre d’étiquettes verticalement</td><td style="padding:10px;border:1px solid #dee2e6;">Nombre de copies placées verticalement dans le PDF final</td></tr></table></div>
<div style="overflow-x:auto;margin:12px 0 20px 0;"><table border="1" style="width:100%;border-collapse:collapse;border-color:#dee2e6;text-align:left;"><tr><th style="padding:10px;border:1px solid #dee2e6;">Setting</th><th style="padding:10px;border:1px solid #dee2e6;">Purpose</th></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Document width</td><td style="padding:10px;border:1px solid #dee2e6;">Final label width, in millimeters</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Document height</td><td style="padding:10px;border:1px solid #dee2e6;">Final label height, in millimeters</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Barcode width</td><td style="padding:10px;border:1px solid #dee2e6;">Barcode width in the template and PDF</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Barcode height</td><td style="padding:10px;border:1px solid #dee2e6;">Barcode height in the template and PDF</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Bar width</td><td style="padding:10px;border:1px solid #dee2e6;">Visual bar thickness, from 0.2 to 1.0 mm</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Pixel size</td><td style="padding:10px;border:1px solid #dee2e6;">QR code image resolution, from 32 to 2048 pixels; default: 250</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Show barcode value</td><td style="padding:10px;border:1px solid #dee2e6;">Shows or hides the text below the barcode</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Labels horizontally</td><td style="padding:10px;border:1px solid #dee2e6;">Number of copies placed horizontally in the final PDF</td></tr><tr><td style="padding:10px;border:1px solid #dee2e6;">Labels vertically</td><td style="padding:10px;border:1px solid #dee2e6;">Number of copies placed vertically in the final PDF</td></tr></table></div>
<p style="margin:0 0 14px 0;line-height:1.6;">Pour modifier une valeur<span> </span>:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">To change a value:</p>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Cliquer sur l’icône en forme de crayon.</li><li style="margin:0 0 4px 0;">Saisir la nouvelle valeur.</li><li style="margin:0 0 4px 0;">Valider la modification.</li></ol>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Click the pencil icon.</li><li style="margin:0 0 4px 0;">Enter the new value.</li><li style="margin:0 0 4px 0;">Confirm the change.</li></ol>
<p style="margin:0 0 14px 0;line-height:1.6;">Les dimensions du code-barres et du QR code sont synchronisées avec le modèle Card Designer. Une modification effectuée dans les paramètres met à jour le modèle ; une modification de taille effectuée dans Card Designer met également à jour les paramètres concernés.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Barcode and QR code dimensions are synchronized with the Card Designer template. Changing them in the settings updates the template; changing their size in Card Designer also updates the related settings.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Le bouton <strong>Réinitialiser les paramètres</strong> restaure les valeurs par défaut du type d’objet affiché.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The <strong>Reset settings</strong> button restores the defaults for the displayed object type.</p>
<h2 id="sec-7">7. Créer un modèle dans Card Designer</h2>
<h2 id="sec-7">7. Create a template in Card Designer</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">Les modèles fournis sont vides afin de laisser l’utilisateur construire sa propre étiquette.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The supplied templates are empty so that users can create their own labels.</p>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Depuis l’onglet <strong>Étiquette</strong>, régler d’abord la largeur et la hauteur du document.</li><li style="margin:0 0 4px 0;">Cliquer sur <strong>Card Designer</strong>.</li><li style="margin:0 0 4px 0;">Utiliser la barre d’outils pour ajouter les éléments souhaités<span> </span>:<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;"><strong>Formes</strong> pour insérer des formes graphiques ;</li><li style="margin:0 0 4px 0;"><strong>Texte</strong> pour ajouter un texte libre ;</li><li style="margin:0 0 4px 0;"><strong>Variables</strong> pour ajouter une donnée dynamique de Dolibarr ;</li><li style="margin:0 0 4px 0;"><strong>Photos</strong> pour utiliser une image importée ;</li><li style="margin:0 0 4px 0;"><strong>Autocollants</strong> pour ajouter un élément décoratif ;</li><li style="margin:0 0 4px 0;"><strong>Couleur</strong> pour modifier la couleur d’un élément ;</li><li style="margin:0 0 4px 0;"><strong>Aligner</strong> pour positionner les éléments ;</li><li style="margin:0 0 4px 0;"><strong>Supprimer</strong> pour retirer l’élément sélectionné.</li></ul></li><li style="margin:0 0 4px 0;">Déplacer et redimensionner chaque élément directement sur la zone de travail.</li><li style="margin:0 0 4px 0;">Cliquer sur <strong>Save</strong>.</li><li style="margin:0 0 4px 0;">Confirmer l’enregistrement.</li></ol>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">On the <strong>Label</strong> tab, set the document width and height first.</li><li style="margin:0 0 4px 0;">Click <strong>Card Designer</strong>.</li><li style="margin:0 0 4px 0;">Use the toolbar to add the elements you need:<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;"><strong>Shapes</strong> to add graphical shapes;</li><li style="margin:0 0 4px 0;"><strong>Text</strong> to add free text;</li><li style="margin:0 0 4px 0;"><strong>Variables</strong> to add dynamic Dolibarr data;</li><li style="margin:0 0 4px 0;"><strong>Photos</strong> to use an uploaded image;</li><li style="margin:0 0 4px 0;"><strong>Stickers</strong> to add a decorative element;</li><li style="margin:0 0 4px 0;"><strong>Color</strong> to change an element's color;</li><li style="margin:0 0 4px 0;"><strong>Align</strong> to position elements;</li><li style="margin:0 0 4px 0;"><strong>Delete</strong> to remove the selected element.</li></ul></li><li style="margin:0 0 4px 0;">Move and resize each element directly on the canvas.</li><li style="margin:0 0 4px 0;">Click <strong>Save</strong>.</li><li style="margin:0 0 4px 0;">Confirm the save.</li></ol>
<p style="margin:0 0 14px 0;line-height:1.6;">L’enregistrement crée uniquement le modèle JSON. Il ne génère pas de PDF. Après confirmation, Card Designer retourne vers la fiche de l’objet.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Saving creates only the JSON template; it does not generate a PDF. After confirmation, Card Designer returns to the object record.</p>
<h2 id="sec-8">8. Ajouter des variables dynamiques</h2>
<h2 id="sec-8">8. Add dynamic variables</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">Dans Card Designer, cliquer sur <strong>Variables du produit</strong>, <strong>Variables du lot</strong>, <strong>Variables de l’entrepôt</strong> ou <strong>Variables du tiers</strong>, selon l’objet ouvert. Cliquer ensuite sur une variable pour l’ajouter au modèle.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">In Card Designer, click <strong>Product variables</strong>, <strong>Batch variables</strong>, <strong>Warehouse variables</strong>, or <strong>Third-party variables</strong>, depending on the open object. Then click a variable to add it to the template.</p>
<h3 id="sec-8-1">8.1. Variables de produit</h3>
<h3 id="sec-8-1">8.1. Product variables</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Les principales variables disponibles sont<span> </span>:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The main available variables are:</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">référence ;</li><li style="margin:0 0 4px 0;">libellé ;</li><li style="margin:0 0 4px 0;">description ;</li><li style="margin:0 0 4px 0;">prix hors taxes ;</li><li style="margin:0 0 4px 0;">prix toutes taxes comprises ;</li><li style="margin:0 0 4px 0;">taux de TVA ;</li><li style="margin:0 0 4px 0;">catégorie ;</li><li style="margin:0 0 4px 0;">code-barres ;</li><li style="margin:0 0 4px 0;">QR code ;</li><li style="margin:0 0 4px 0;">champs supplémentaires du produit.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">reference;</li><li style="margin:0 0 4px 0;">label;</li><li style="margin:0 0 4px 0;">description;</li><li style="margin:0 0 4px 0;">price excluding tax;</li><li style="margin:0 0 4px 0;">price including tax;</li><li style="margin:0 0 4px 0;">VAT rate;</li><li style="margin:0 0 4px 0;">category;</li><li style="margin:0 0 4px 0;">barcode;</li><li style="margin:0 0 4px 0;">QR code;</li><li style="margin:0 0 4px 0;">product extra fields.</li></ul>
<p style="margin:0 0 14px 0;line-height:1.6;">Les prix et le taux de TVA sont formatés avec deux chiffres après la virgule.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Prices and the VAT rate are formatted with two decimal places.</p>
<h3 id="sec-8-2">8.2. Variables de lot</h3>
<h3 id="sec-8-2">8.2. Batch variables</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Les principales variables disponibles sont<span> </span>:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The main available variables are:</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">référence du lot ;</li><li style="margin:0 0 4px 0;">référence du produit lié ;</li><li style="margin:0 0 4px 0;">libellé du produit ;</li><li style="margin:0 0 4px 0;">description du produit ;</li><li style="margin:0 0 4px 0;">DLC ;</li><li style="margin:0 0 4px 0;">DMD/DLUO ;</li><li style="margin:0 0 4px 0;">code-barres créé à partir de la référence du lot ;</li><li style="margin:0 0 4px 0;">QR code créé à partir de la référence du lot ;</li><li style="margin:0 0 4px 0;">champs supplémentaires du lot.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">batch reference;</li><li style="margin:0 0 4px 0;">linked product reference;</li><li style="margin:0 0 4px 0;">product label;</li><li style="margin:0 0 4px 0;">product description;</li><li style="margin:0 0 4px 0;">use-by date (DLC);</li><li style="margin:0 0 4px 0;">best-before date (DMD/DLUO);</li><li style="margin:0 0 4px 0;">barcode generated from the batch reference;</li><li style="margin:0 0 4px 0;">QR code generated from the batch reference;</li><li style="margin:0 0 4px 0;">batch extra fields.</li></ul>
<h3 id="sec-8-3">8.3. Variables d’entrepôt</h3>
<h3 id="sec-8-3">8.3. Warehouse variables</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Les principales variables disponibles sont<span> </span>:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The main available variables are:</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">référence ;</li><li style="margin:0 0 4px 0;">libellé ;</li><li style="margin:0 0 4px 0;">description ;</li><li style="margin:0 0 4px 0;">lieu et adresse ;</li><li style="margin:0 0 4px 0;">code postal et ville ;</li><li style="margin:0 0 4px 0;">projet lié, référence du projet et titre du projet ;</li><li style="margin:0 0 4px 0;">catégories ou tags ;</li><li style="margin:0 0 4px 0;">code-barres créé à partir de la référence de l’entrepôt ;</li><li style="margin:0 0 4px 0;">QR code créé à partir de la référence de l’entrepôt ;</li><li style="margin:0 0 4px 0;">champs supplémentaires de l’entrepôt.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">reference;</li><li style="margin:0 0 4px 0;">label;</li><li style="margin:0 0 4px 0;">description;</li><li style="margin:0 0 4px 0;">location and address;</li><li style="margin:0 0 4px 0;">postal code and city;</li><li style="margin:0 0 4px 0;">linked project, project reference and title;</li><li style="margin:0 0 4px 0;">categories or tags;</li><li style="margin:0 0 4px 0;">barcode generated from the warehouse reference;</li><li style="margin:0 0 4px 0;">QR code generated from the warehouse reference;</li><li style="margin:0 0 4px 0;">warehouse extra fields.</li></ul>
<h3 id="sec-8-4">8.4. Variables de tiers</h3>
<h3 id="sec-8-4">8.4. Third-party variables</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Les principales variables disponibles sont<span> </span>:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The main available variables are:</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">nom du tiers ;</li><li style="margin:0 0 4px 0;">code client ;</li><li style="margin:0 0 4px 0;">code fournisseur ;</li><li style="margin:0 0 4px 0;">adresse, code postal et ville ;</li><li style="margin:0 0 4px 0;">adresse électronique et téléphone ;</li><li style="margin:0 0 4px 0;">code-barres ;</li><li style="margin:0 0 4px 0;">QR code ;</li><li style="margin:0 0 4px 0;">champs supplémentaires du tiers.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">third-party name;</li><li style="margin:0 0 4px 0;">customer code;</li><li style="margin:0 0 4px 0;">supplier code;</li><li style="margin:0 0 4px 0;">address, postal code, and city;</li><li style="margin:0 0 4px 0;">email address and phone number;</li><li style="margin:0 0 4px 0;">barcode;</li><li style="margin:0 0 4px 0;">QR code;</li><li style="margin:0 0 4px 0;">third-party extra fields.</li></ul>
<h3 id="sec-8-5">8.5. Champs supplémentaires</h3>
<h3 id="sec-8-5">8.5. Extra fields</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Les champs supplémentaires configurés dans Dolibarr sont ajoutés automatiquement à la liste des variables de l’objet. Leur nom technique est associé à un libellé lisible dans Card Designer.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Extra fields configured in Dolibarr are automatically added to the variables for that object. Their technical names are associated with readable labels in Card Designer.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Si un champ supplémentaire est vide pour l’objet courant, son emplacement peut apparaître sous forme de variable dans Card Designer, mais aucune valeur ne sera imprimée dans le PDF.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">If an extra field is empty for the current object, its placeholder may still appear in Card Designer, but no value is printed in the PDF.</p>
<h2 id="sec-9">9. Utiliser les codes-barres et les QR codes</h2>
<h2 id="sec-9">9. Use barcodes and QR codes</h2>
<h3>Produits et tiers</h3>
<h3>Products and third parties</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Le code-barres et le QR code sont proposés uniquement si<span> </span>:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The barcode and QR code are available only when:</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">le module Codes-barres est activé ;</li><li style="margin:0 0 4px 0;">l’utilisation des codes-barres est activée pour le type d’objet concerné dans la configuration Dolibarr ;</li><li style="margin:0 0 4px 0;">l’objet possède une valeur de code-barres.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">the Barcodes module is enabled;</li><li style="margin:0 0 4px 0;">barcode use is enabled for the relevant object type in Dolibarr setup;</li><li style="margin:0 0 4px 0;">the object has a barcode value.</li></ul>
<p style="margin:0 0 14px 0;line-height:1.6;">Si le produit ou le tiers ne possède pas de code-barres, Card Designer peut afficher le nom de la variable comme repère, mais aucun code fictif n’est imprimé dans le PDF.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">If a product or third party has no barcode, Card Designer may show the variable name as a placeholder, but no fictitious code is printed in the PDF.</p>
<h3>Lots et entrepôts</h3>
<h3>Batches and warehouses</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Le code-barres et le QR code utilisent la référence du lot ou de l’entrepôt. Une référence vide produit donc un emplacement vide dans le PDF.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The barcode and QR code use the batch or warehouse reference. If the reference is empty, the corresponding area in the PDF is blank.</p>
<h3>Taille pixel du QR code</h3>
<h3>QR code pixel size</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">La taille pixel contrôle la résolution de l’image générée pour le QR code. Une valeur plus élevée améliore la netteté lors d’un agrandissement, mais augmente le poids des données. La valeur par défaut de 250 convient à la majorité des étiquettes.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Pixel size controls the resolution of the generated QR code image. A higher value improves sharpness when enlarged but increases the data size. The default value of 250 is suitable for most labels.</p>
<h2 id="sec-10">10. Importer et utiliser des photos</h2>
<h2 id="sec-10">10. Upload and use photos</h2>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Dans Card Designer, cliquer sur <strong>Photos</strong>.</li><li style="margin:0 0 4px 0;">Un QR code d’importation apparaît.</li><li style="margin:0 0 4px 0;">Scanner ce QR code avec un téléphone, ou ouvrir directement la page d’importation.</li><li style="margin:0 0 4px 0;">Sélectionner les images à envoyer au format PNG, JPG ou JPEG.</li><li style="margin:0 0 4px 0;">Valider l’importation.</li><li style="margin:0 0 4px 0;">Revenir dans Card Designer et rouvrir la bibliothèque <strong>Photos</strong> si nécessaire.</li><li style="margin:0 0 4px 0;">Cliquer sur la photo souhaitée pour l’insérer dans l’étiquette.</li><li style="margin:0 0 4px 0;">Déplacer et redimensionner l’image, puis enregistrer le modèle.</li></ol>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">In Card Designer, click <strong>Photos</strong>.</li><li style="margin:0 0 4px 0;">An upload QR code appears.</li><li style="margin:0 0 4px 0;">Scan it with a phone or open the upload page directly.</li><li style="margin:0 0 4px 0;">Select PNG, JPG, or JPEG images to upload.</li><li style="margin:0 0 4px 0;">Confirm the upload.</li><li style="margin:0 0 4px 0;">Return to Card Designer and reopen the <strong>Photos</strong> library if needed.</li><li style="margin:0 0 4px 0;">Click the photo to insert it into the label.</li><li style="margin:0 0 4px 0;">Move and resize the image, then save the template.</li></ol>
<p style="margin:0 0 14px 0;line-height:1.6;">La page d’importation sert uniquement à envoyer les fichiers. La mise en page de la photo se fait ensuite dans Card Designer.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The upload page only sends files. Photo layout is done afterward in Card Designer.</p>
<h2 id="sec-11">11. Générer le PDF</h2>
<h2 id="sec-11">11. Generate the PDF</h2>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Ouvrir la fiche de l’objet à imprimer.</li><li style="margin:0 0 4px 0;">Accéder à son onglet <strong>Étiquette</strong>.</li><li style="margin:0 0 4px 0;">Vérifier les paramètres et les données de l’objet.</li><li style="margin:0 0 4px 0;">Cliquer sur <strong>Générer</strong>.</li><li style="margin:0 0 4px 0;">Le module charge le modèle du type d’objet.</li><li style="margin:0 0 4px 0;">Les variables sont remplacées par les données de l’objet courant.</li><li style="margin:0 0 4px 0;">Le PDF est généré avec Fabric.js et jsPDF.</li><li style="margin:0 0 4px 0;">Le fichier apparaît dans la zone <strong>Fichiers joints</strong>.</li><li style="margin:0 0 4px 0;">Cliquer sur le nom du PDF ou sur l’icône d’aperçu pour le consulter.</li></ol>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Open the record to print.</li><li style="margin:0 0 4px 0;">Go to its <strong>Label</strong> tab.</li><li style="margin:0 0 4px 0;">Check the settings and object data.</li><li style="margin:0 0 4px 0;">Click <strong>Generate</strong>.</li><li style="margin:0 0 4px 0;">The module loads the template for that object type.</li><li style="margin:0 0 4px 0;">Variables are replaced with the current object's data.</li><li style="margin:0 0 4px 0;">The PDF is generated with Fabric.js and jsPDF.</li><li style="margin:0 0 4px 0;">The file appears in the <strong>Attached files</strong> area.</li><li style="margin:0 0 4px 0;">Click the PDF name or preview icon to view it.</li></ol>
<p style="margin:0 0 14px 0;line-height:1.6;">Le même modèle peut donc produire successivement les étiquettes de plusieurs objets différents.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">The same template can generate labels for multiple objects in succession. The horizontal and vertical label counts apply only to the final PDF, repeating the label without changing the Card Designer template.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Le nombre d’étiquettes horizontal et vertical est appliqué uniquement au PDF final. Il permet de répéter l’étiquette sans modifier le modèle Card Designer.</p>
<h2 id="sec-12">12. Modify an existing template</h2>
<h2 id="sec-12">12. Modifier un modèle existant</h2>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Open any object of the relevant type.</li><li style="margin:0 0 4px 0;">Go to its <strong>Label</strong> tab.</li><li style="margin:0 0 4px 0;">Click <strong>Card Designer</strong>.</li><li style="margin:0 0 4px 0;">Edit the template.</li><li style="margin:0 0 4px 0;">Click <strong>Save</strong> and confirm.</li><li style="margin:0 0 4px 0;">Generate the PDF again.</li></ol>
<ol style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Ouvrir n’importe quel objet du type concerné.</li><li style="margin:0 0 4px 0;">Accéder à l’onglet <strong>Étiquette</strong>.</li><li style="margin:0 0 4px 0;">Cliquer sur <strong>Card Designer</strong>.</li><li style="margin:0 0 4px 0;">Modifier le modèle.</li><li style="margin:0 0 4px 0;">Cliquer sur <strong>Save</strong> et confirmer.</li><li style="margin:0 0 4px 0;">Générer de nouveau le PDF.</li></ol>
<p style="margin:0 0 14px 0;line-height:1.6;">The change applies to future labels of the same type. Previously generated PDFs are not updated automatically.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">La modification s’applique à toutes les prochaines étiquettes du même type. Les PDF déjà générés ne sont pas modifiés automatiquement.</p>
<h2 id="sec-13">13. Configure Bluetooth printing</h2>
<h2 id="sec-13">13. Configuration de l’impression Bluetooth</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">The <strong>Home &gt; Setup &gt; Modules/Applications &gt; Label Designer</strong> page has two options:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">La page <strong>Accueil &gt; Configuration &gt; Modules/Applications &gt; Label Designer</strong> contient deux options activables<span> </span>:</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;"><strong>Labeldesigner on Bluetooth printer</strong>: enables the features intended for Bluetooth printing;</li><li style="margin:0 0 4px 0;"><strong>Replace accented characters on Bluetooth printers</strong>: replaces characters that some printers cannot print correctly.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;"><strong>Labeldesigner sur imprimante Bluetooth</strong><span> </span>: active les fonctions prévues pour l’impression Bluetooth ;</li><li style="margin:0 0 4px 0;"><strong>Remplacer les caractères accentués sur imprimantes Bluetooth</strong><span> </span>: remplace les caractères que certaines imprimantes ne savent pas imprimer correctement.</li></ul>
<p style="margin:0 0 14px 0;line-height:1.6;">Bluetooth printing is disabled by default. The second option is useful only when the first is enabled and the printer has trouble with accented characters.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">L’impression Bluetooth est désactivée par défaut. La seconde option n’est utile que lorsque la première est activée et que l’imprimante rencontre des problèmes avec les caractères accentués.</p>
<h2 id="sec-14">14. Design tips</h2>
<h2 id="sec-14">14. Conseils de conception</h2>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Set the document dimensions before starting the layout.</li><li style="margin:0 0 4px 0;">Leave a margin around the label to avoid print cutoffs.</li><li style="margin:0 0 4px 0;">Do not stretch a barcode or QR code excessively.</li><li style="margin:0 0 4px 0;">Print a test and check that scanners can read the codes.</li><li style="margin:0 0 4px 0;">Use clear images without unnecessarily high resolution.</li><li style="margin:0 0 4px 0;">Leave enough room for variables whose length changes between objects.</li><li style="margin:0 0 4px 0;">Save the template before leaving Card Designer.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">Définir les dimensions du document avant de commencer la mise en page.</li><li style="margin:0 0 4px 0;">Conserver une marge autour de l’étiquette pour éviter les coupures à l’impression.</li><li style="margin:0 0 4px 0;">Ne pas étirer excessivement un code-barres ou un QR code.</li><li style="margin:0 0 4px 0;">Effectuer un test d’impression et vérifier la lecture des codes avec un scanner.</li><li style="margin:0 0 4px 0;">Utiliser des images suffisamment nettes, sans résolution inutilement élevée.</li><li style="margin:0 0 4px 0;">Laisser assez d’espace pour les variables dont la longueur change selon l’objet.</li><li style="margin:0 0 4px 0;">Enregistrer le modèle avant de quitter Card Designer.</li></ul>
<h2 id="sec-15">15. Troubleshooting</h2>
<h2 id="sec-15">15. Dépannage</h2>
<h3>The Save button returns an HTTP 500 error</h3>
<h3>Le bouton Save retourne une erreur HTTP 500</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Check that the web server can write to the Dolibarr documents directory, especially the folder reserved for Label Designer templates. Disabling and re-enabling the module may recreate the required folder. Also check the PHP or web server log for the exact message.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Vérifier que le serveur web peut écrire dans le répertoire des documents Dolibarr, notamment dans le dossier réservé aux modèles Label Designer. Désactiver puis réactiver le module peut recréer le dossier nécessaire. Consulter également le journal PHP ou le journal du serveur web pour obtenir le message exact.</p>
<h3>The PDF is blank</h3>
<h3>Le PDF est vide</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Check that a template containing elements has been saved for this object type. Templates installed by default are intentionally empty.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Vérifier qu’un modèle contenant des éléments a été enregistré pour ce type d’objet. Les modèles installés par défaut sont volontairement vides.</p>
<h3>A variable appears in Card Designer but is missing from the PDF</h3>
<h3>Une variable est visible dans Card Designer mais absente du PDF</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Check that the field is populated on the object used to generate the PDF. An empty variable is not replaced with a fictitious value.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Vérifier que le champ est renseigné sur l’objet utilisé pour la génération. Une variable vide n’est pas remplacée par une valeur fictive.</p>
<h3>Extra fields are not visible</h3>
<h3>Les champs supplémentaires ne sont pas visibles</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Check that extra fields are enabled for the correct object type and that the user has the required permissions. Reload Card Designer after adding a new field.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Vérifier que les champs supplémentaires sont activés pour le bon type d’objet et que l’utilisateur dispose des permissions nécessaires. Recharger Card Designer après l’ajout d’un nouveau champ.</p>
<h3>The barcode or QR code is unavailable</h3>
<h3>Le code-barres ou le QR code n’est pas disponible</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">For a product or third party, check that the Barcodes module is enabled, barcode use is enabled for that object type, and the record has a value. For a batch or warehouse, check that its reference is not empty.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Pour un produit ou un tiers, vérifier l’activation du module Codes-barres, l’option d’utilisation pour le type d’objet et la présence d’une valeur sur la fiche. Pour un lot ou un entrepôt, vérifier que la référence n’est pas vide.</p>
<h3>A size change does not seem to apply</h3>
<h3>Une modification de taille ne semble pas appliquée</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Save the value, reload Card Designer if it was already open, then generate a new PDF. Make sure you are viewing the latest file.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Enregistrer la valeur, recharger Card Designer si celui-ci était déjà ouvert, puis générer un nouveau PDF. Vérifier que l’on consulte bien le dernier fichier produit.</p>
<h3>The page shows an old version</h3>
<h3>L’affichage conserve une ancienne version</h3>
<p style="margin:0 0 14px 0;line-height:1.6;">Hard-refresh the browser page. If needed, clear the Dolibarr and browser caches.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Actualiser la page avec un rechargement complet du navigateur. Si nécessaire, vider le cache de Dolibarr et le cache du navigateur.</p>
<h2 id="sec-16">16. Storage and backups</h2>
<h2 id="sec-16">16. Stockage et sauvegarde</h2>
<p style="margin:0 0 14px 0;line-height:1.6;">Card Designer templates are stored as JSON files in the module's directory under Dolibarr documents. Generated PDFs are stored with the documents associated with each object.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Les modèles Card Designer sont enregistrés sous forme de fichiers JSON dans le répertoire des documents Dolibarr réservé au module. Les PDF générés sont stockés dans les documents associés aux objets.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">To back up the module configuration, include the following in your backup plan:</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Pour sauvegarder entièrement la configuration du module, inclure dans la stratégie de sauvegarde<span> </span>:</p>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">the Dolibarr database;</li><li style="margin:0 0 4px 0;">the Dolibarr documents directory;</li><li style="margin:0 0 4px 0;">the Label Designer module directory.</li></ul>
<ul style="margin:0 0 16px 0;padding-left:24px;line-height:1.6;"><li style="margin:0 0 4px 0;">la base de données Dolibarr ;</li><li style="margin:0 0 4px 0;">le répertoire des documents Dolibarr ;</li><li style="margin:0 0 4px 0;">le dossier du module Label Designer.</li></ul>
<p style="margin:0 0 14px 0;line-height:1.6;">Do not manually edit JSON files while a user is working in Card Designer.</p>
<p style="margin:0 0 14px 0;line-height:1.6;">Ne pas modifier manuellement les fichiers JSON pendant qu’un utilisateur travaille dans Card Designer.</p>
<h2>17. Support</h2>
<p>When requesting help, provide the module and Dolibarr versions, the steps to reproduce the issue, and the error message with sensitive data removed. Contact support at [mailto:contact@01consulting.eu contact@01consulting.eu]. Publisher website: [https://01consulting.eu 01consulting.eu].</p>
</div></div>
</div></div>
[[fr:Label_Designer_FR]]

Latest revision as of 12:19, 30 September 2026

Label Designer User Guide

Module version: 1.0.0
Declared compatibility: Dolibarr 15.0+, PHP 7.1+
Last documentation review: 2026-09-30

Demo video:

Demo site: Open the demo site

Publisher website: 01consulting.eu

This guide describes, step by step, how to install, configure, and use Label Designer 1.0.0 for Dolibarr.

1. Module overview

Label Designer lets you visually create label templates and generate PDF files using data stored in Dolibarr.

The module supports four object types:

  • products and services;
  • product batches;
  • warehouses;
  • third parties (customers and suppliers).

One template is created for each object type and reused automatically. You do not need a separate label for every product, batch, warehouse, or third party. When a PDF is generated, template variables are replaced with the current object's data.

2. Requirements

Before installation, check that:

  • Dolibarr 15 or later is installed;
  • PHP 7.1 or later is available;
  • Dolibarr's Barcodes module is available;
  • the web server can write to the Dolibarr documents directory.

3. Installation and activation

  1. Copy the labeldesigner directory to htdocs/custom/.
  2. Sign in to Dolibarr with an administrator account.
  3. Go to Home > Setup > Modules/Applications.
  4. Find Label Designer.
  5. Enable the module.
  6. Make sure the Barcodes module is also enabled.

When activated, Label Designer prepares its storage directory in Dolibarr documents and enables barcode use for products and third parties.

4. Configure user permissions

  1. Open the relevant user or group record.
  2. Open the Permissions tab.
  3. Grant the required Label Designer permissions:
    • read labels;
    • create and modify templates and PDFs.
  4. Make sure the user can also view the relevant object: product, batch, warehouse, or third party.

Without permission to view the object, some data or variables may not be available.

After an update that adds or changes module permissions, disable and re-enable Label Designer so Dolibarr registers the new permissions. You can then grant Read labels and Create labels separately to users and groups.

5. Open a label

  1. Open a product, batch, warehouse, or third-party record.
  2. Click the Label tab provided by Label Designer.
  3. The page displays:
    • label settings;
    • the Card Designer button;
    • the Reset settings button;
    • the generated PDF files area;
    • the Generate button.

If another module also adds a tab named Label, identify the Label Designer tab by its URL or content.

6. Set label parameters

Settings are stored separately for each object type.

SettingPurpose
Document widthFinal label width, in millimeters
Document heightFinal label height, in millimeters
Barcode widthBarcode width in the template and PDF
Barcode heightBarcode height in the template and PDF
Bar widthVisual bar thickness, from 0.2 to 1.0 mm
Pixel sizeQR code image resolution, from 32 to 2048 pixels; default: 250
Show barcode valueShows or hides the text below the barcode
Labels horizontallyNumber of copies placed horizontally in the final PDF
Labels verticallyNumber of copies placed vertically in the final PDF

To change a value:

  1. Click the pencil icon.
  2. Enter the new value.
  3. Confirm the change.

Barcode and QR code dimensions are synchronized with the Card Designer template. Changing them in the settings updates the template; changing their size in Card Designer also updates the related settings.

The Reset settings button restores the defaults for the displayed object type.

7. Create a template in Card Designer

The supplied templates are empty so that users can create their own labels.

  1. On the Label tab, set the document width and height first.
  2. Click Card Designer.
  3. Use the toolbar to add the elements you need:
    • Shapes to add graphical shapes;
    • Text to add free text;
    • Variables to add dynamic Dolibarr data;
    • Photos to use an uploaded image;
    • Stickers to add a decorative element;
    • Color to change an element's color;
    • Align to position elements;
    • Delete to remove the selected element.
  4. Move and resize each element directly on the canvas.
  5. Click Save.
  6. Confirm the save.

Saving creates only the JSON template; it does not generate a PDF. After confirmation, Card Designer returns to the object record.

8. Add dynamic variables

In Card Designer, click Product variables, Batch variables, Warehouse variables, or Third-party variables, depending on the open object. Then click a variable to add it to the template.

8.1. Product variables

The main available variables are:

  • reference;
  • label;
  • description;
  • price excluding tax;
  • price including tax;
  • VAT rate;
  • category;
  • barcode;
  • QR code;
  • product extra fields.

Prices and the VAT rate are formatted with two decimal places.

8.2. Batch variables

The main available variables are:

  • batch reference;
  • linked product reference;
  • product label;
  • product description;
  • use-by date (DLC);
  • best-before date (DMD/DLUO);
  • barcode generated from the batch reference;
  • QR code generated from the batch reference;
  • batch extra fields.

8.3. Warehouse variables

The main available variables are:

  • reference;
  • label;
  • description;
  • location and address;
  • postal code and city;
  • linked project, project reference and title;
  • categories or tags;
  • barcode generated from the warehouse reference;
  • QR code generated from the warehouse reference;
  • warehouse extra fields.

8.4. Third-party variables

The main available variables are:

  • third-party name;
  • customer code;
  • supplier code;
  • address, postal code, and city;
  • email address and phone number;
  • barcode;
  • QR code;
  • third-party extra fields.

8.5. Extra fields

Extra fields configured in Dolibarr are automatically added to the variables for that object. Their technical names are associated with readable labels in Card Designer.

If an extra field is empty for the current object, its placeholder may still appear in Card Designer, but no value is printed in the PDF.

9. Use barcodes and QR codes

Products and third parties

The barcode and QR code are available only when:

  • the Barcodes module is enabled;
  • barcode use is enabled for the relevant object type in Dolibarr setup;
  • the object has a barcode value.

If a product or third party has no barcode, Card Designer may show the variable name as a placeholder, but no fictitious code is printed in the PDF.

Batches and warehouses

The barcode and QR code use the batch or warehouse reference. If the reference is empty, the corresponding area in the PDF is blank.

QR code pixel size

Pixel size controls the resolution of the generated QR code image. A higher value improves sharpness when enlarged but increases the data size. The default value of 250 is suitable for most labels.

10. Upload and use photos

  1. In Card Designer, click Photos.
  2. An upload QR code appears.
  3. Scan it with a phone or open the upload page directly.
  4. Select PNG, JPG, or JPEG images to upload.
  5. Confirm the upload.
  6. Return to Card Designer and reopen the Photos library if needed.
  7. Click the photo to insert it into the label.
  8. Move and resize the image, then save the template.

The upload page only sends files. Photo layout is done afterward in Card Designer.

11. Generate the PDF

  1. Open the record to print.
  2. Go to its Label tab.
  3. Check the settings and object data.
  4. Click Generate.
  5. The module loads the template for that object type.
  6. Variables are replaced with the current object's data.
  7. The PDF is generated with Fabric.js and jsPDF.
  8. The file appears in the Attached files area.
  9. Click the PDF name or preview icon to view it.

The same template can generate labels for multiple objects in succession. The horizontal and vertical label counts apply only to the final PDF, repeating the label without changing the Card Designer template.

12. Modify an existing template

  1. Open any object of the relevant type.
  2. Go to its Label tab.
  3. Click Card Designer.
  4. Edit the template.
  5. Click Save and confirm.
  6. Generate the PDF again.

The change applies to future labels of the same type. Previously generated PDFs are not updated automatically.

13. Configure Bluetooth printing

The Home > Setup > Modules/Applications > Label Designer page has two options:

  • Labeldesigner on Bluetooth printer: enables the features intended for Bluetooth printing;
  • Replace accented characters on Bluetooth printers: replaces characters that some printers cannot print correctly.

Bluetooth printing is disabled by default. The second option is useful only when the first is enabled and the printer has trouble with accented characters.

14. Design tips

  • Set the document dimensions before starting the layout.
  • Leave a margin around the label to avoid print cutoffs.
  • Do not stretch a barcode or QR code excessively.
  • Print a test and check that scanners can read the codes.
  • Use clear images without unnecessarily high resolution.
  • Leave enough room for variables whose length changes between objects.
  • Save the template before leaving Card Designer.

15. Troubleshooting

The Save button returns an HTTP 500 error

Check that the web server can write to the Dolibarr documents directory, especially the folder reserved for Label Designer templates. Disabling and re-enabling the module may recreate the required folder. Also check the PHP or web server log for the exact message.

The PDF is blank

Check that a template containing elements has been saved for this object type. Templates installed by default are intentionally empty.

A variable appears in Card Designer but is missing from the PDF

Check that the field is populated on the object used to generate the PDF. An empty variable is not replaced with a fictitious value.

Extra fields are not visible

Check that extra fields are enabled for the correct object type and that the user has the required permissions. Reload Card Designer after adding a new field.

The barcode or QR code is unavailable

For a product or third party, check that the Barcodes module is enabled, barcode use is enabled for that object type, and the record has a value. For a batch or warehouse, check that its reference is not empty.

A size change does not seem to apply

Save the value, reload Card Designer if it was already open, then generate a new PDF. Make sure you are viewing the latest file.

The page shows an old version

Hard-refresh the browser page. If needed, clear the Dolibarr and browser caches.

16. Storage and backups

Card Designer templates are stored as JSON files in the module's directory under Dolibarr documents. Generated PDFs are stored with the documents associated with each object.

To back up the module configuration, include the following in your backup plan:

  • the Dolibarr database;
  • the Dolibarr documents directory;
  • the Label Designer module directory.

Do not manually edit JSON files while a user is working in Card Designer.

17. Support

When requesting help, provide the module and Dolibarr versions, the steps to reproduce the issue, and the error message with sensitive data removed. Contact support at contact@01consulting.eu. Publisher website: 01consulting.eu.