Loading...
 

Introduction

PluginPDFpage is another wiki plugin for mPDF. Its function is to customize page settings for PDF output of any specific page (also works over multiple pages).

PluginPDF sets parameters for the wiki page, while PluginPDFpage changes the parameters just for a specific blob of text.

An example of usage is to switch from portrait to landscape for one large table, and to change back after the table.

Plugin Parameters

Introduced in Tiki 18.
Go to the source code
Preferences required: wikiplugin_pdf

Parameters Accepted Values Description Default Since
(body of plugin) Page Content
orientation (blank)
P
L
Landscape or portrait P
pagesize (blank)| Letter| Legal| Tabloid/Ledger| A0| A1| A2| A3| A4| A5| A6 ISO Standard sizes: A0, A1, A2, A3, A4, A5 or North American paper sizes: Letter, Legal, Tabloid/Ledger (for ledger, select landscape orientation)
header Enter Wiki Syntax / HTML code / Plain text.
Possible values: Custom HTML / Wiki Syntax / text , {PAGENO}, {DATE j-m-Y}, Page {PAGENO} of {NB}, Left text| Center Text | Right Text.
Set header value as off, to turn off header from page
footer Possible values: HTML / Wiki Syntax / Plain text, {PAGENO}, {DATE j-m-Y}.
For example: {PAGETITLE}|Center Text|{PAGENO}, Page {PAGENO} of {NB}, .
Set footer value as off, to remove footer from page
margin_left digits Numeric value.For example 10 10
margin_right digits Numeric value, no need to add px. For example 10 10
margin_top digits Numeric value, no need to add px. For example 10 10
margin_bottom digits Numeric value, no need to add px. For example 10 10
margin_header digits Only applicable if header is set. Numeric value only, no need to add px.Warning: Header can overlap text if top margin is not set properly 5
margin_footer digits Only applicable if footer is set.Numeric value only, no need to add px. Warning: Footer can overlap text if bottom margin is not set properly 5
hyperlinks (blank)
off
footnote
columns (blank)
2
(blank)
(blank)
watermark Watermark text value, for example: Confidential, Draft etc.
watermark_image To turn off watermark image on the page, set value as off Full URL of watermark image
background Enter a valid CSS color code.
background_image Enter the full URL.



Sample PluginPDFpage Code

{PDFPAGE(orientation="L" watermark="Landscape Page")} contents of the page that you want impacted by different parameters than the rest of the page {PDFPAGE}


Do not try to use like this:

{pdfpage orientation="L"}

List Slides