Skip to the content
Documentation

[PdfSettings]

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

"Download as PDF" of a help page (exphelp/pdf/<page id>, ./console exp:help pdf <page id>), drawn by the kernel's own PDF library (lib/ezpdf); nothing outside the installation is called. Files are cached in <help cache>/pdf.

File

settings/exphelp.ini; override it in settings/override/exphelp.ini.append.php, in a siteaccess or in an extension.

Settings

Setting Default Description
Enabled true false hides the button and makes exphelp/pdf a 404
PageSize A4 A4 or Letter
FontFiles[] /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf; /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf; /usr/share/fonts/TTF/DejaVuSans.ttf; /usr/share/fonts/dejavu/DejaVuSans.ttf TrueType (.ttf) fonts: of each list the first file that exists is used (a relative path is taken from the install root). A TrueType font draws every character it has (embedded as a composite font, the text stays selectable). With no regular font found the PDF core fonts are used and text is transliterated to Windows-1252.
BoldFontFiles[] /usr/share/fonts/dejavu-sans-fonts/DejaVuSans-Bold.ttf; /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf; /usr/share/fonts/TTF/DejaVuSans-Bold.ttf; /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf  
ItalicFontFiles[] /usr/share/fonts/dejavu-sans-fonts/DejaVuSans-Oblique.ttf; /usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf; /usr/share/fonts/TTF/DejaVuSans-Oblique.ttf; /usr/share/fonts/dejavu/DejaVuSans-Oblique.ttf  
BoldItalicFontFiles[] /usr/share/fonts/dejavu-sans-fonts/DejaVuSans-BoldOblique.ttf; /usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf; /usr/share/fonts/TTF/DejaVuSans-BoldOblique.ttf; /usr/share/fonts/dejavu/DejaVuSans-BoldOblique.ttf  
MonoFontFiles[] /usr/share/fonts/dejavu-sans-mono-fonts/DejaVuSansMono.ttf; /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf; /usr/share/fonts/TTF/DejaVuSansMono.ttf; /usr/share/fonts/dejavu/DejaVuSansMono.ttf Monospace for code; without one the core font Courier is used (and the regular font for what Courier lacks)
FallbackFontFiles[] /usr/share/fonts/google-droid-sans-fonts/DroidSansFallbackFull.ttf; /usr/share/fonts/truetype/droid/DroidSansFallbackFull.ttf; /usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc Characters the regular font lacks (Chinese, Japanese, Korean ...); loaded only when a page needs it

See also

Generated example: exphelp.ini [PdfSettings]

Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/exphelp.ini.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.