Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

PDF export

This page is for editors and administrators who turn content into PDF files. The PDF export lives at Setup > PDF export (/pdf/list, edit page /pdf/edit, policy pdf/edit). In 6.0 it produces files that open, text that…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/6.0/pdf-export.md

On this page

PDF export

This page is for editors and administrators who turn content into PDF files. The PDF export lives at Setup > PDF export (/pdf/list, edit page /pdf/edit, policy pdf/edit). In 6.0 it produces files that open, text that reads correctly, images that fit the page, real UTF-8 with a TrueType font, and a footer line you word yourself.

Upgrading? Run the database update first: see PDF export upgrade.

  1. Open Setup > PDF export and create or edit an export.
  2. Tick Show footer and type your wording in Footer text, for example "Example Ltd, product sheet".
  3. Save and export. Every page carries your line instead of "Exponential PDF export".
FieldColumn in ezpdf_exportDefaultMeaning
Show footershow_footer (int)1Whether the footer carries a line of text at all
Footer textfooter_text (varchar 255)emptyThe wording. Empty with the box ticked keeps the shipped wording.

Before, the words were fixed in content/pdf/footer.tpl. An export made before this change looks exactly as it did.

The bundled fonts hold one single-byte character set. For Unicode text, point Font at a .ttf file:

# settings/override/pdf.ini.append.php
[PDFGeneral]
Font=/usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf

The font is embedded as a composite font, UTF-8 passes through unchanged, and the text stays selectable and searchable. DejaVu Sans covers Latin, Latin Extended, Greek, Cyrillic, Hebrew, Armenian and Georgian. For Chinese, Japanese or Korean, point Font at a font that has them (a Noto CJK face, for instance).

What was repaired

  • The export could not produce a file at all, and when it did, the pages were unreadable. The library under lib/ezpdf now writes valid files.
  • HTML entities and link addresses reached the printed page unprocessed; they are now decoded before they are drawn.
  • Accents, dashes, euro signs, bullets and curly quotes survive the default font (see OutputCharset below).
  • Images are scaled down to fit the page instead of running off the paper.
  • Underlines under links are as long as the link.
  • An export with a table answers again on PHP 8: the table operator counted a boolean instead of its parameters, which PHP 8 refuses with a TypeError, so content/pdf answered 500 (fixed 2026-10-12).

Settings

All keys are in settings/pdf.ini, block [PDFGeneral]. Scope: global. Check them with grep -v '^#' settings/pdf.ini. The [Header] and [Footer] blocks (margins, line thickness) are older and unchanged.

KeyDefaultMeaning
OutputCharsetwindows-1252The charset text is written in. Ignored when Font is a .ttf file. For the bundled fonts it must be single byte; utf-8 there is refused (debug log error) and windows-1252 used. Change it only together with FontEncoding. Was iso-8859-1, which dropped characters in 0x80 to 0x9F.
TransliterateenabledDegrade a character the charset cannot hold to its closest ASCII (Lódz rather than a question mark). Ignored with a .ttf font.
LinkUnderlineenabledDraw a rule under links as well as colouring them
MaxImageWidthemptyLargest image width in points (72 to the inch). Empty means what the page has room for, paper less margins.
MaxImageHeightemptyThe same for height
ImageScalingenabledScale images down, keeping proportions. disabled draws them at the size handed over.
Format, Orientation, TopMargin, BottomMargin, LeftMargin, RightMarginA4, portrait, 80, 100, 80, 80Page size and margins, unchanged by this work
Fontlib/ezpdf/classes/fonts/HelveticaA bundled face (Helvetica, Times-Roman, Courier) or the full path of a .ttf file
FontEncodingWinAnsiEncodingWhich glyph each of a simple font's 256 slots holds: WinAnsiEncoding (windows-1252), MacRomanEncoding (mac-roman) or StandardEncoding

The list of exports is paged by admininterface.ini [PaginationSettings] ItemsPerPage[pdf/list] (pagination settings).

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x