Location: PHPKode > scripts > PDFTemplate > pdftemplate/pdf.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE pdf SYSTEM "pdf.dtd">
<pdf>
<page ticks="1"/>
<para>
This is a sample document to show off the features of {DEFAULTS.VERSION}.
Look at the accompianing xmlpdf.php file for implementation of the php code component.
</para>
<para>
The &lt;page&gt; tag has the &quot;ticks&quot; parameter enables so
that tick marks will appear on the left side. (I used this for debugging
line placement.) The page tag MUST appear right 
after the &lt;pdf&gt; tag even if it is a blank &lt;page/&gt; tag.
</para>
<para indent="1">
This &lt;para&gt;graph has the &quot;indent&quot; parameter
enables so the first line will be indented by the default page tabbing
(half inch). This can be overidden with the &quot;tab&quot; parameter.
</para>
<para nobreak="1">
The &quot;nobreak&quot; parameter was set so this paragrapch will have no trailing blank line.
</para>
<para>There is no line break above this paragraph. Use &lt;br/&gt; to force a line break.</para>
<para>
For variable substitution wrap the variable name with curly braces {}.  Wrapping text in a 
&lt;nosub&gt; tag will prevent variable substitution.<br/>
<tab tab="1"/><nosub>{NAME}</nosub>={NAME}<br/>
The above line was tabbed with the &lt;tab&gt; tag and a &quot;tab&quot; parameter of 1 inch
(from left edge of page NOT from margin)
</para>
<para nobreak="1">
There are several variables that get predefigned in the class.. These variables start with "DEFAUTS.".
</para>
<para>
<nosub>{DEFAULTS.VERSION}</nosub> = The current version of the PDFTemplate class.<br/>
<nosub>{DEFAULTS.BLOCK}</nosub> = the name of the current block being iterated. (see page 5)<br/>
<nosub>{DEFAULTS.ITERATION}</nosub> = the current iteration of the block being iterated. (see page 5)<br/>
<nosub>{DEFAULTS.DATE}</nosub> = Todays date. {DEFAULTS.DATE}<br/>
<nosub>{DEFAULTS.TIME}</nosub> = Current time. {DEFAULTS.TIME}<br/>
</para>
<para>
Normal text<br/>
<bold>Bold text</bold><br/>
<italic>Italic text</italic><br/>
<italic><bold>Bold-Italic text</bold></italic><br/>
</para>
<para align="left" nobreak="1">
Left aligned text
</para>
<para align="center" nobreak="1">
Centered text
</para>
<para align="right">
Right aligned text
</para>
<para>
Normal font size..
<font size="24">Large font size</font>Normal size again.<br/>
This is the next line.
</para>
<para nobreak="1">
Built in fonts<br/>
<font face="Helvetica">Helvetica</font><br/>
<font face="Courier">Courier</font><br/>
<font face="Times-Roman">Times-Roman</font><br/>
</para>
<para>
This is a paragraph at the end of the page to show automatic page breaking.
A page break can be forced by using the &lt;break/&gt; tag.  To insert a page
break along with redefined the page size use the &lt;page/&gt; tag.
</para>
<para>
For example: There will be a page break after this paragraph.
</para>
<break/>
<para>
The next page will only be 3 inches tall and have no tick marks by using the
following page tag. The unspecified parameters will be filled with "letter" defaults
and not the previous page definition.<br/>
&lt;page height=&quot;3&quot;/&gt;
</para>
<page height="3"/>
<para>
A small 3" tall page.. (not like you would ever create a page that small..
but you could if you wanted to!)
</para>
<para>
The next page will show repeating block in action.
</para>
<page/>
<para>
Below the following block is defined.<br/>
&lt;block name=&quot;test&quot;&gt;<br/>
&lt;para nobreak=&quot;1&quot;&gt;<br/>
This is iteration number <nosub>{DEFAULTS.ITERATION} of block {DEFAULTS.BLOCK}</nosub>&lt;br/&gt;<br/>
<nosub>{.DATE} - {.VALUE}</nosub><br/>
&lt;/para&gt;<br/>
&lt;/block&gt;<br/>
</para>
<block name="test">
<para nobreak="1">
This is iteration number {DEFAULTS.ITERATION} of block {DEFAULTS.BLOCK}<br/>
{.DATE} - {.VALUE}
</para>
</block>
</pdf>
Return current item: PDFTemplate