Table des matières

Plugin: Export PDF/HTML/ODT

HTML

Exporter une page du Wiki en HTML (facilite le copier-coller):

PDF

Tableaux

Pour mettre votre tableau à 100% dans votre pdf veuillez ajouter la balise suivante avant votre tableau '<WRAP tablewidth 100%>...</WRAP>'

Exemple:

<WRAP tablewidth 100%>
^ Indice  ^ Date         ^ Nature de la modification               ^ Validé par      ^
|  v0.9   |  06/03/2019  | Ecriture en cours...                    |                 |
</WRAP>

Templates

PDF Templates define the design of the created PDF files and are a good way to easily customize them to your Corporate Identity.

The default PDF template which is shipped with the dw2pdf plugin is shown below. It has simple headers, footers and citation box.

The default shipped PDF template To create a new template, just create a new folder within the plugin's lib/plugins/dw2pdf/tpl/ folder and put your header, footers, cover page, and style definitions in it. See lib/plugins/dw2pdf/tpl/default for an example. Do not modify the template default, this template will be overwritten on updates, so you will lose your changes.

After creation, you set in the Configuration Manager that your template should be used for exports. Eventually, if you like to change template incidentally, you can use the URL parameter &tpl=<foldername>.

Headers and Footers

The following files can be created and will be used to set headers and footers on odd or even pages. Special headers/footers can be used on the first page of a document. If a file does not exist the next more generic one will be tried. E.g. if you don't differ between even and odd pages, just the header.html is used.

You can use all HTML that is understood by mPDF (See mpdf.github.io)

If you reference image files from your pdf-template file, be sure to prefix them with the @TPLBASE@ (or for some cases @TPLINC@) parameter (See Replacements below).

Replacements

The following replacement patterns can be used within the header and footer files.

Remark about Bookcreator: The next page dependent replacements are only for citation.html updated for every page. In the headers and footers the ID of the bookmanager page of the Bookcreator is applied.

Styles

Custom stylings can be provided in the following file of your pdf-template folder:

You can use all the CSS that is understood by mPDF
(See https://mpdf.github.io/css-stylesheets/supported-css.html)