.. ================================================== .. FOR YOUR INFORMATION .. -------------------------------------------------- .. -*- coding: utf-8 -*- with BOM. .. ================================================== .. DEFINE SOME TEXTROLES .. -------------------------------------------------- .. role:: underline .. role:: typoscript(code) .. role:: ts(typoscript) :class: typoscript .. role:: php(code) Customizing the pdf-Page via the Constant Editor ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You can set several options on a per-template basis with the Constant Editor. These options will result in parameters used by the htmltopdf conversion. The following parameters can be set: .. ### BEGIN~OF~TABLE ### .. container:: table-row Property landscape Data type boolean Description Set this to true if you want to generate the page in landscape mode Default False .. container:: table-row Property top Data type string Description Specifies the top margin in mm. Default 13 .. container:: table-row Property bottom Data type string Description Specifies the bottom margin in mm. Default 13 .. container:: table-row Property left Data type string Description Specifies the left margin in mm. Default 13 .. container:: table-row Property right Data type string Description Specifies the right margin in mm. Default 13 .. container:: table-row Property string\_search[1-4] Data type string Description Using this parameter together with string\_replace you can remove/replace certain parts of your html-file prior to passing it to the html2pdf conversion. One example is to remove the “Back” link in the recipe extension. You can do this (when using english language) with string\_search1 = “Back” and string\_replace1 = “” You can actually use string\_search[5-n] as long as they are all set Default Empty .. container:: table-row Property string\_replace[1-4] Data type string Description See string\_search[1-4] Default Empty .. container:: table-row Property regexp\_search[1-4] Data type string Description The same as string\_search, but for regular expressions. The search and replace parameters must be valid regular expressions that will be passed to preg\_replace. You can actually use regexp\_search[5-n] as long as they are all set Default Empty .. container:: table-row Property regexp\_replace[1-4] Data type string Description See regexp\_search[1-4] Default Empty .. ###### END~OF~TABLE ######