<?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 <page> tag has the "ticks" 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 <pdf> tag even if it is a blank <page/> tag.
</para>
<para indent="1">
This <para>graph has the "indent" parameter
enables so the first line will be indented by the default page tabbing
(half inch). This can be overidden with the "tab" parameter.
</para>
<para nobreak="1">
The "nobreak" parameter was set so this paragrapch will have no trailing blank line.
</para>
<para>There is no line break above this paragraph. Use <br/> to force a line break.</para>
<para>
For variable substitution wrap the variable name with curly braces {}. Wrapping text in a
<nosub> tag will prevent variable substitution.<br/>
<tab tab="1"/><nosub>{NAME}</nosub>={NAME}<br/>
The above line was tabbed with the <tab> tag and a "tab" 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 <break/> tag. To insert a page
break along with redefined the page size use the <page/> 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/>
<page height="3"/>
</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/>
<block name="test"><br/>
<para nobreak="1"><br/>
This is iteration number <nosub>{DEFAULTS.ITERATION} of block {DEFAULTS.BLOCK}</nosub><br/><br/>
<nosub>{.DATE} - {.VALUE}</nosub><br/>
</para><br/>
</block><br/>
</para>
<block name="test">
<para nobreak="1">
This is iteration number {DEFAULTS.ITERATION} of block {DEFAULTS.BLOCK}<br/>
{.DATE} - {.VALUE}
</para>
</block>
</pdf>