Promotions

  • Advanced HRM : Advanced human resources management

    This module brings a layer of ergonomics and additional features in the standard Dolibarr human resources management module, such as the facility to create absence requests from the employee schedule, the addition of automatic VAT rates, the integration of the km scale on the tranche 1 and of google maps.

    145.00 €  (290€)
  • INTERVENTION PLUS - Complete Management of Interventions

    The “Intervention Plus” module is a revolutionary tool that simplifies and optimizes intervention management, from planning to invoicing. Designed for sales and technical teams, it offers a complete suite of features to ensure transparent and efficient monitoring of each intervention.

    250.00 €  (500€)

New products

  • SgProposalVersion

    Version history for Dolibarr commercial proposals. Freeze the full state (lines, prices and PDF) as an immutable version; compare two versions or against the current quote to see what changed; and restore a previous version. The current version (V0, V1, V2…) shows automatically on the card and in the PDF title.

    60.00 €
  • Inventory Accounting

    InvAcct is a native Dolibarr custom module for inventory accounting close support. Posts inventory, COGS, Production inputs/outputs, inventory balance for inventory close.

    500.00 €

PDF Designer

mp21278d20260412000957

Visual PDF Template Designer for Dolibarr

150.00 €
Excl. tax

  • Author Yoandry Martinez
  • Module version 2.0
  • Release date 04/12/2026
  • Access to download and updates 360 days
  • How to contact support admin@erpmodplus.com
  • Compatibility Dolibarr V23+   -   PHP7.4 - 8.X
  • Last update 06/20/2026 08:08 PM

More info...

🎨

PDF Designer

Visual PDF template designer for Dolibarr

Create professional and customized PDF documents with a visual drag-and-drop editor. No coding required.

150 €

Compatible with Dolibarr 16.0+  |  PHP 7.4+  |  GPL v3 License

🚀 v2.0 — Show/Hide Columns + Conditional Hide 🆕 v1.5 — Raw HTML Editor + Formula Engine
✅ Drag & Drop Visual Editor 📄 8 Document Types 🔧 Extra Fields Supported 🌐 Automatic Multi-language 🖼️ Embedded Images

Why PDF Designer?

Dolibarr's default PDF templates (Sponge, Crabe...) are limited and difficult to customize. PDF Designer lets you create documents with your own corporate identity, using an intuitive visual editor based on GrapesJS: drag blocks, modify styles, insert variables and get perfect PDFs in seconds.

🚀 NEW IN v2.0

Full control over tables and PDF elements

Two long-requested features: show/hide columns in the lines table with one click, and a configurable conditional system to make any element disappear from the PDF when a rule is met.

📊

Show / hide table columns

A new side panel in the designer with checkboxes for each column of the lines table: position, product ref., description, dates, quantity, price, discount, VAT and total. Toggle and the column hides instantly in both the editor and the generated PDF.

  • Robust DB persistence (CSS class serialized in the HTML).
  • Backwards compatible with old templates using inline display:none.
  • State restored correctly after refreshing the designer.
👁

Configurable conditional hide

Select any element (row, cell, block...), click the eye-slash button and pick a condition from a visual dialog. If the condition matches the rendered content, the element is removed from the final PDF.

Available operators:
Is empty Not empty Is null Is zero (= 0) Not zero > >= < <= = ≠ Contains Does not contain

💡 Real use cases

  • Hide the Discount column on invoices where you never apply discounts.
  • Automatically remove line rows where VAT is 0 on exported invoices.
  • Hide the block "Customer email: {client_email}" when the customer has no email (Is null operator).
  • Show a "Cash payment" notice only when the total > 1000 € (Greater than operator).
  • Hide Dates or Product ref. columns in simple service templates.
100% backwards compatible — existing templates keep working with no changes. New options are fully managed from the designer, no code required.

⭐ Main Features

🎨

Drag & Drop Visual Editor

Complete editor based on GrapesJS with pre-designed blocks for PDF sections: header, customer data, lines table, totals, footer and more. Drag, resize and customize each element.

📋

8 Document Types

Invoices, quotes, orders, interventions, shipments, supplier invoices, supplier orders and supplier proposals. A different template for each document type.

🏷️

Smart Variables System

+60 variables organized by categories: company, customer, document, lines, translated labels and miscellaneous. Side panel with drag or click to copy. Automatically replaced when generating the PDF.

🔧

Extra Fields (Extrafields)

Complete support for Dolibarr extra fields: document, lines and third party (customer). Loaded dynamically from database. Use {extra_field} in your template.

🌐

Multi-language Labels

Translated label variables like {label_Invoice}, {label_TotalHT} that automatically translate to the document/customer language.

🐧

Linux + wkhtmltopdf

Works exclusively on Linux servers with wkhtmltopdf installed. Full CSS support: flexbox, advanced borders, web fonts and modern designs for perfect PDFs.

🖼️

Base64 Embedded Images

Upload images directly to the editor. They are embedded in base64 within the template, ensuring they always display correctly in the PDF without depending on external paths.

📐

Complete Page Configuration

Page format (A4, Letter), orientation (portrait/landscape), customizable margins (top, bottom, left, right) in millimeters. Preview in editor according to format.

</>

🆕 Raw HTML Editor v1.5

Modal with HTML/CSS editor and automatic formatter: indents code, highlights tags. Allows adding/removing columns and rows, modifying titles and any structure with full freedom when the visual editor doesn't reach.

🧮

🆕 Formula Engine v1.5

Per-line calculations with {calc:line_qty*line_price} and aggregations {sum:...}, {avg:...}, {count}. Supports + - * / %, parentheses, decimals and numeric extrafields.

📄 Supported Document Types

🧾
Invoices
📝
Quotes
📦
Orders
🔧
Interventions
🚚
Shipments
🧾
Supplier Inv.
📦
Supplier Orders
📝
Supplier Prop.

🏷️ Variable System

60+ variables organized by categories, available in the editor's side panel

Category Variable Examples Description
🏢 Company {company_name} {company_logo} {company_siret} Name, address, phone, email, web, SIRET, SIREN, capital, intra-community VAT, logo
👤 Customer {client_name} {client_address} {client_tva_intra} Name, address, zip code, city, country, phone, email, VAT, code, SIRET
📄 Document {doc_ref} {doc_date} {doc_total_ttc} Reference, date, due date, public/private notes, totals HT/VAT/TTC, currency, payment terms and methods
📊 Lines {line_desc} {line_qty} {line_total_ht} Position, description, quantity, unit price, VAT rate, total per line, discount, product ref, start/end dates
🌐 Labels {label_Invoice} {label_TotalHT} {label_Qty} Automatically translated labels in the language of the customer/document: Invoice, Quote, Order, Total, VAT, etc.
🔧 Extra Fields {extra_field} {extra_line_field} {extra_client_field} Extra fields from document, lines and customer. Dynamically loaded from the database.

⚙️ Line Loop System

Wrap your table lines with tags {lines} and {/lines} to repeat them automatically for each line in the document:

<tbody>
  {lines}
  <tr>
    <td>{line_pos}</td>
    <td>{line_desc}</td>
    <td>{line_qty}</td>
    <td>{line_total_ht}</td>
  </tr>
  {/lines}
</tbody>

⚠️ Important Note: Manually modifying table lines in the visual editor is complex. It is recommended to use the Raw HTML Editor (button </>) to add, remove or modify rows and columns.

🆕 Raw HTML Editor — Maximum Flexibility v1.5

For advanced modifications that the visual designer cannot easily handle, use the HTML editor with code coloring and automatic indentation.

💾 Save 📋 Copy ✨ Format
Mode: HTML + CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<table>
  <thead>
    <tr style="background: #f0f0f0;">
      <th>Item</th>
      <th>Quantity</th>
      <th>Total</th>
    </tr>
  </thead>
  <tbody>
    {lines}
    <tr>
      <td>{line_desc}</td>
      <td>{line_qty}</td>
      <td>{line_total_ht}</td>
✅ Automatic Indentation
The editor automatically reformats your code with proper indentation.
🎨 Syntax Coloring
HTML tags, attributes and values with distinctive colors for easy reading.
➕ Add/Remove Rows
Easily modify table structure without visual editor limitations.
🔧 Full CSS Control
Write advanced styles: flexbox, grid, animations and media queries.

💡 Tip: Combine the visual editor (for quick design) with the HTML editor (for precise adjustments). Code remains intact when switching editors.

🆕 Formula Engine v1.5

Perform calculations directly in your templates, without programming.

<!-- Quantity × Price × (1 - Discount%) -->
<td>{calc:line_qty * line_price * (1 - line_discount/100)}</td>

<!-- Margin per line: Price - Cost (extra field) -->
<td>{calc:(line_price - extra_line_cost) * line_qty}</td>

<!-- Custom VAT per line -->
<td>{calc:line_total_ht * 1.20}</td>

<!-- Aggregations (outside loop) -->
<p>Total items: {sum:line_qty} — Average: {avg:line_price}</p>
<p>Lines: {count}</p>

<!-- Calc at document level with extra field -->
<p>Margin: {calc:doc_total_ht - extra_total_cost}</p>
🔢 Line Variables:
line_qty, line_price, line_total_ht, line_total_tva, line_total_ttc, line_discount, line_tva_rate, line_pos, extra_line_*
📄 Document Variables:
doc_total_ht, doc_total_tva, doc_total_ttc, doc_total_localtax1, doc_total_localtax2, extra_*
⚙️ Operators: + - * / % · parentheses · decimals · negatives · secure parser (no eval)

🎯 Recommendations: When to Use Each Editor

🎨 Visual Editor (Drag & Drop)

✅ Ideal for:
  • General template design
  • Quickly add pre-designed blocks
  • Adjust visual styles (colors, typography)
  • Position elements and basic layout
  • Insert variables from side panel

</> Raw HTML Editor

✅ Ideal for:
  • Add/remove rows and columns
  • Modify table headers
  • Apply advanced CSS (flexbox, grid)
  • Fix HTML format errors
  • Fine adjustments impossible in visual
  • Complex structure modifications

⚡ Pro Tip: Changes in the HTML editor are preserved when returning to the visual editor. Use both without concern: design first visually, then fine-tune in HTML if needed.

📋 How It Works

1

Create a Template

Select document type, page format and margins.

2

Design Visually

Use the drag-and-drop editor. Drag blocks and variables from the side panel.

3

Set as Default

Assign the template as default and activate the PDF Designer template.

4

Generate Your PDFs!

Your documents will automatically use your custom design.

🧩 Pre-designed Blocks Ready to Use

📄 Header — Logo, company data and document reference 👤 Customer Data — Block with all third-party information
📊 Lines Table — Complete table with integrated line loop 💰 Totals — Total HT, VAT and TTC with professional design
💳 Payment Info — Payment terms and methods 📝 Notes — Document public note block
📎 Footer — SIRET, VAT and pagination 🔤 Basic Elements — Text, title, image, separator, columns

⚙️ Technical Requirements

Operating System Linux (Ubuntu, Debian, CentOS, RHEL, etc.)
Dolibarr 16.0 or higher
PHP 7.4 or higher
PDF Engine wkhtmltopdf (mandatory) — Full CSS support

⚠️ Important: Linux + wkhtmltopdf Only

This module requires a Linux server with wkhtmltopdf installed. It is not compatible with Windows servers. wkhtmltopdf is necessary to generate PDFs with advanced CSS support (flexbox, borders, web fonts).

🐧 Installing wkhtmltopdf on Linux

Ubuntu / Debian:

sudo apt-get update
sudo apt-get install -y wkhtmltopdf

CentOS / RHEL / AlmaLinux:

sudo yum install -y wkhtmltopdf

Version with full support (recommended for servers without graphics environment):

# Download patched Qt version (better rendering)
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb
sudo apt install -y ./wkhtmltox_0.12.6.1-3.jammy_amd64.deb

Verify Installation:

wkhtmltopdf --version

💡 On headless servers (without graphics environment), you may need to also install: xvfbsudo apt-get install -y xvfb

🔐 Permission System

Granular access control: Read templates, Create/Edit templates and Delete templates. Configure which users or groups can design and manage PDF templates.

🖥️

Try It Before You Buy!

We have an online demonstration instance where you can see PDF Designer working in real time with example data and all features.

🌐 Access Live Demo

To request your credentials as a demo administrator user, send an email to:
📧 admin@erpmodplus.com

📥 Easy Installation

1. Download the module from Dolistore

2. Go to Home → Settings → Modules → Deploy External Module and upload the ZIP

3. Activate the "PDFDesigner" module

4. Start designing your PDF templates!

PDF Designer for Dolibarr

Version 2.0.0  |  GPL v3 License  |  Compatible Dolibarr 16.0+

150 €



If you think this module is a fork of another one (published after the first one) or violates some terms or conditions of use (for users or vendors), you can make a report at dolistore@dolibarr.org