Changes

PDF Writer Custom Tags

1,549 bytes removed, 16:46, 23 January 2018
Sample HTML Template
If the syntax ''<nowiki><!--filename='WPF - filename'--></nowiki>'' is included in the HTML Template, when saved as a PDF, the PDF filename will default to 'WPF - filename.pdf'.<br />
Variables such as @name@ can be used (ex. ''<nowiki><!--filename='WPF - @name@'--></nowiki>'') to dynamically set the resultant PDF filename.
 
==Sample HTML Template==
 
<pre>
<html>
<head>
<style type="text/css">
<!--
body {font-family: Arial, Times New Roman;}
.overflow {width: 700px; word-wrap: break-word;}
.white {color: #ffffff;}
.spacer {font-family: Arial, Helvetica, sans-serif; font-size: 10px; color: #FFF;}
-->
</style>
</head>
<body bgcolor="#FFFFFF" topmargin="25" bottommargin="25" leftmargin="30" rightmargin="30">
<!--Use Letter--><!--Use TTF--><!--filename='WPF - filename'-->
<!--START: Header and Footer when converted to PDF-->
<pd4ml:page.header>
<table width="700px" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><div class="overflow"><strong>@type@ - @year(fullstartdate)@</strong></div></td>
</tr>
</table>
</pd4ml:page.header>
<pd4ml:page.footer>
<div style="pd4ml-display:block;display:none;margin-top: 30px;margin-left:30px;margin-right:30px;margin-bottom:30px">
<table width="700px" align="center">
<tr>
<td style="text-align:right">page $[page] of $[total]</td>
</tr>
</table>
</div>
</pd4ml:page.footer>
<!--END Header and Footer for PDF-->
<pd4ml>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" style="PAGE-BREAK-inside: avoid;">
<tr>
<td valign="top"><div class="overflow">Page 1 text goes here</div></td>
</tr>
</table>
<div class="spacer">.</div>
<pd4ml:page.break/>
<table width="700" border="0" cellspacing="0" cellpadding="0" align="center" style="PAGE-BREAK-inside: avoid;">
<tr>
<td valign="top"><div class="overflow">Page 2 text goes here</div></td>
</tr>
</table>
</pd4ml>
</body>
</html>
 
</pre>
==See Also==
Smartstaff, administrator
3,329
edits