Changes

PDF Writer Custom Tags

72 bytes added, 15:05, 29 March 2023
m
no edit summary
==List of Custom Tags (pd4ml)==
'''<code><style="pd4ml-display:none"''' ></code> or '''<code><style="pd4ml-display:block"''' ></code> Controls whether a HTML element will be included or not included in the PDF. Must be wrapped in angle brackets.
'''style="PAGE-BREAK-inside: avoid"''': Prevents an HTML element from being broken by a page break. Note: If the element is more than a page in length this setting cannot be applied and will be ignored. Must be wrapped in angle brackets.
==Page Format==
To generate PDFs in a specific format within the body of the [[Web Page View]], add the appropriate tag below. We recommend adding the sample template to your Web Page View custom field. This will use SmartFields and will automatically create a formatted PDF for you.
 * <span style="font -size="3: medium;">&lt;!--Use Landscape--></fontspan> - will set the HTML width based on the paper type.* <span style="font -size="3: medium;">&lt;!--Use Letter--></fontspan> - will set the page width to 971.* <span style="font -size="3: medium;">&lt;!--Use Legal--></fontspan> - will set the page width to 1235.
==Table Size==
Recommended table sizes are as follows:
 
* Letter 700 pixels wide
* Letter (landscape) 950 pixels wide
==Specify PDF File Name==
Use the '''Exported File Name''' input to change the name on the generated PDF file. This will change the HTML comment tag called '''filename='Application Preview'''' in the '''HTML Template'''.
Variables such as @name@ can be used (ex. filename='WPF - @name@').
Smartstaff
2,354
edits