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 upgrade

Read this page if you upgrade an installation that uses PDF export (content/pdf, the PDF export pages in the admin). The export gained a configurable footer, better fonts and image scaling. Upgrading needs two database…

Download as PDF

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

On this page

PDF export upgrade

Read this page if you upgrade an installation that uses PDF export (content/pdf, the PDF export pages in the admin). The export gained a configurable footer, better fonts and image scaling. Upgrading needs two database columns, and some pdf.ini defaults changed. The feature itself is described in PDF export.

In short

What changedezpdf_export has two new columns; six [PDFGeneral] defaults are new or changed; footer.tpl reads the new footer settings.
Who is affectedEvery installation that keeps PDF exports. Installations that override OutputCharset or content/pdf/footer.tpl.
How to checkLook for show_footer in the ezpdf_export table, and for overrides of OutputCharset and footer.tpl.
How to fixApply the database update; align OutputCharset with FontEncoding; update an overridden footer.tpl.

Step 1: update the database

ezpdf_export gains two columns. The statements are in update/database/<engine>/6.0/dbupdate-6.0.0-6.0.15.sql; the file exists for mysql, postgresql and sqlite. The same file also holds the OPML and podcast columns. Apply the whole file once, in order, and only the statements your database does not have yet.

-- mysql
ALTER TABLE ezpdf_export ADD COLUMN show_footer int(11) NOT NULL DEFAULT 1;
ALTER TABLE ezpdf_export ADD COLUMN footer_text varchar(255) NOT NULL DEFAULT '';
-- sqlite (same two columns; int type is `integer`, text `varchar(255)`)
ALTER TABLE ezpdf_export ADD COLUMN show_footer integer NOT NULL DEFAULT 1;
ALTER TABLE ezpdf_export ADD COLUMN footer_text varchar(255) NOT NULL DEFAULT '';
-- postgresql
ALTER TABLE ezpdf_export ADD COLUMN show_footer integer NOT NULL DEFAULT 1;
ALTER TABLE ezpdf_export ADD COLUMN footer_text character varying(255) NOT NULL DEFAULT '';

A clean install gets the columns from share/db_schema.dba. Existing exports keep showing the shipped footer wording (show_footer=1, empty text).

Step 2: review the changed settings

File settings/pdf.ini, block [PDFGeneral], scope: installation.

KeyBeforeNow
OutputCharsetiso-8859-1windows-1252
Transliteratedid not existenabled
LinkUnderlinedid not existenabled
ImageScalingdid not existenabled
MaxImageWidth, MaxImageHeightdid not existempty (page size)
FontEncodingdid not existWinAnsiEncoding
  • If you override OutputCharset, make sure it still agrees with FontEncoding.
  • If you rely on images drawn at their pixel size, set ImageScaling=disabled.

Check your overrides:

grep -rn "OutputCharset\|ImageScaling\|FontEncoding" settings/override settings/siteaccess extension/*/settings 2>/dev/null

No output means you use the shipped defaults.

design/standard/templates/content/pdf/footer.tpl reads the export's footer settings. An override of that template keeps working, but it does not show the new footer wording until it reads show_footer and footer_text. Copy those parts from the shipped template into your override.

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