We rebuilt our website from scratch and are still updating some extensions and pages. Having a problem? Sign in and open a support ticket or contact us.
JoomBoost

PDF

JoomInvoice makes PDF files of invoices and quotes with the Dompdf library that comes with it. Nothing has to be installed on the server.

Get a PDF

  • In the administrator, click PDF next to an invoice or quote in the list.
  • Clients click the PDF button next to an invoice or quote on their My invoices page.
  • When Attach PDF invoice in email is on, every invoice and quote email has the PDF attached.

The PDF uses the PDF version of the invoice's template, or the online version when the PDF version is empty, plus the Styles for PDF and email. See Templates.

Labels are printed in the language of the invoice, not the language of your administrator.

PDF options

Go to Configuration > PDF:

Option What it does
PDF paper format A4 or Letter.
PDF orientation Portrait or Landscape.
Set PDF document properties Writes the number as the title and your company name as the author in the PDF file properties.
Status watermark Prints the status across the page, such as PAID, OVERDUE, REFUNDED, ACCEPTED or REJECTED. Pending invoices get no watermark. Pending quotes get QUOTE.
Show page numbers Prints Page X of Y at the bottom of each page.
PDF footer text A line of text at the bottom of each page, for example your company registration. Use Latin characters here.
PDF download filename The file name. Placeholders: {invoice_num}, {to_name}, {date}.
Unicode / international text Turn this on for Arabic, Chinese, Cyrillic or Greek text. The PDF then uses the DejaVu Sans font.
PDF QR code See QR codes.

QR codes

PDF QR code prints a QR code in the bottom right corner of the PDF:

Choice The code opens
- None - No code.
Payment link The payment page of the first unpaid payment. Shown only while there is an unpaid payment.
Invoice/quote link The online invoice or quote.
Both Two codes side by side.

QR code size (px) sets the size, from 40 to 400 pixels. The secret code is added to the links according to Auth code in payment links, see Client portal.

You can also place the codes yourself with the {payment_qr} and {invoice_qr} placeholders in a template.

QR codes need PHP 7.4 or newer and the PHP GD extension. Without them, no code is printed and the rest of the PDF is not affected.

Writing a PDF template

Dompdf is not a web browser:

  • Use tables for the layout. Flexbox and grid are not supported.
  • JavaScript does not run.
  • Inline styles and the Styles for PDF and email field are used. Your site's stylesheets are not.
  • Give images and table columns a fixed width.
  • Test the PDF after each change.

Temporary files

To attach a PDF to an email, JoomInvoice first writes it to the folder named in Folder for tmp PDF creation (must be writtable), pdfinvoices in your site root by default. The files are not deleted afterwards.

In 6.5.2 this folder is inside your public web folder and the files are named after the invoice number, so anyone who guesses a number could download the PDF. Until this is fixed, block web access to the folder. On Apache, put a .htaccess file with the line Require all denied in it. Delete old files from it from time to time.

All Extensions