Location: PHPKode > scripts > PDFTemplate > pdftemplate/PDFTemplate.html
	<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=iso-8859-1">
	<TITLE>PDFTemplate Documentation</TITLE>
	<META NAME="GENERATOR" CONTENT="StarOffice/5.2 (Linux)">
	<META NAME="CREATED" CONTENT="20010418;17044500">
	<META NAME="CHANGED" CONTENT="20010420;15545000">
<body bgcolor="white">
<H1>PDF Template Documentation</H1>
<H2>1) Usage</H2>
$mypdf = new PDFTemplate("pdf.xml",$debug);
$mypdf-&gt;Assign("NAME","Jon Doe");

<h3>class initialization</h3>
<p>The parameters are the name of the file and an optional debug flag.  setting debug to 1 will result in a text out of the PDF renderer parsing.  Use this to debug erroneous XML files.</P>
Assigns the variable in parameter one to the value of parameter two.
The Parse command parses the entire file and renders each page to the client while substituting the variables.
the close command closes the PDF document and finishes sending the document to the client.
<H2>2) Fonts</H2>
<H2>3) Elements/Input file format.</H2>
<P>Begins with a standard XML tag line.</P>
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
<P>Then the opening PDF tag.</P>
<pre>&lt;pdf xmlns:pdf="pdf.dtd"&gt;</pre>
<P>The file must end with a &lt;/PDF&gt;</P>
<p>Specifies a page break.  All tags contained within the page tag will appear on the same page. (as long as it all fits)</p>
<P>MARGIN:  Margin size in inches.  Default 0.5 inches</P>
<P>WIDTH: Page width in inches.  Default 8.5 inches.</P>
<P>HEIGHT: Page height in inches.  Default 11 inches.</P>
<P>A paragraph marking.  Text will be word wrapped and a line feed
after the last line of text. All text must be in a paragraph.</P>
<P>INDENT: set to 1 to indent the first line of the paragraph by 1
half inch.</P>
<P>TAB: indent the entire paragraph by x inches.</P>
<P>ALIGN: alignment. Left,center,right,justified.</P>
<P>NOBREAK: set to 1 to prevent the trailing line feed.</P>
<P>Changes the font to bold</P>
<P>Changes the font to italics</P>
<P>Changes the current font.</P>
<P>FONT: the font to change to.</P>
<P>SIZE: the point size.</P>
<P>Set the TAB attribute to the next point where text is printed to
this offset from left edge of page (ignoring margin.)</P>
<P>This tag does not have a closing TAG. use it like &lt;TAB tab="4"/&gt;</P>
<P>Forces a hard break with no linefeed.</P>
<P>This tag does not have a closing TAG.  use it like &lt;BR/&gt;</P>
Return current item: PDFTemplate