Changes

PDF Writer Custom Tags

2,319 bytes removed, 16:35, 23 January 2018
Examples
* '''<pd4ml:page.break/>''': insert this for a PDF page break.
 
==Examples==
* The following HTML can be added to a [[Web Page View]] document to be used as the page header and footer. A different header is defined for the first page using the '''scope''' option.
:Only the header for the first page will be displayed in the [[Web Page View]] HTML view. The header for subsequent pages and the page footer are hidden using '''<div style="display:none;pd4ml-display:block">'''
 
<pre>
<pd4ml:page.header scope="1">
<div style="margin-top: 30px;margin-left:30px;margin-right:30px;margin-bottom:30px">
<img src="/files/12345/f51222/HeaderImage.jpg" width="250px">
</div>
</pd4ml:page.header>
 
<div style="display:none;pd4ml-display:block">
<pd4ml:page.header scope="2+">
<div style="margin-top: 30px;margin-left:30px;margin-right:30px;margin-bottom:30px">
<table width="100%">
<tr>
<td><img src="/files/12345/f51222/HeaderImage.jpg" width="250px"></td>
<td style="text-align:right">page $[page] of $[total]</td>
</tr>
</table>
</div>
</pd4ml:page.header>
 
<pd4ml:page.footer>
<div style="margin-top:30px;margin-left:30px;margin-right:30px;margin-bottom:30px">
<table width="100%">
<tr>
<td><img src="/files/12345/f51221/FooterImage.jpg" width="75px"></td>
<td style="text-align:right"><span style='font-size:9.0pt;line-height:115%;color:gray'>SmartSimple Software >></span>
<span style='font-family:"Arial Black","sans-serif";color:#008386'> <link>www.smartsimple.com</link></span>
</td>
</tr>
</table></div>
</pd4ml:page.footer>
</div>
 
</pre>
 
 
* The following will show the table in the HTML view, but it will not be included in the PDF:
<pre>
<table border="1" style="display:block;pd4ml-display:none">
<tr><th>Header 1</th><th>Header 2</th></tr>
<tr><td>row 1, cell 1</td><td>row 1, cell 2</td></tr>
<tr><td>row 2, cell 1</td><td>row 2, cell 2</td></tr>
</table>
</pre>
 
 
* The following will prevent a table from spanning 2 pages (unless the table is more than 1 page in length) you can also specify table rows not to break across pages using the same technique:
<pre>
<table border="1" style="PAGE-BREAK-inside: avoid">
<tr><th>Activity</th><th>Owner</th></tr>
[#(?object=activity)
<tr><td>@subject@</td><td>@owner@</td></tr>
#]
</table>
</pre>
==Page Format==
Smartstaff, administrator
3,320
edits