<td>Page margins (millimeters). Note that you may calculate top and bottom margin height automatically
to fit header/footer content by specifying zero values for topmargin AND bottommargin at the same time.</td>
</tr>
<tr>
<trclass="even">
<tdid="media">media</td>
<td>Name of <ahref="configuration.html#common"title="Media definitions in configuration file">predefined media</a> to use. Note that media name is case-sensitive!</td>
</tr>
<trclass="odd">
<td>method</td>
<td>This option determines the type of script output:
<ul>
<li>fastps -- Postscript;</li>
<li>pdflib -- PDF generated using PDFLIB;</li>
<li>fpdf -- PDF generated using <ahref="http://www.fpdf.org"target="_blank">FPdf</a></li>
</ul>
</td>
</tr>
<trclass="even">
<td>output</td>
<td>The value of this parameter determines how the generated file will be
handled:
<ul>
<li>0 -- PDF file will be opened immediately (possibly in the same browser
window). Note it will not work for Postscript files in most cases, they
will be downloaded as usual;</li>
<li>1 -- user will be prompted to download generated file;</li>
<li>2 -- generated file will be <ahref="configuration.html#common"title="How to configure this option">stored
on the server</a>;</li>
</ul>
</td>
</tr>
<trclass="odd">
<tdid="pageborder">pageborder</td>
<td>Set this parameter if you want the page border to be printed.</td>
</tr>
<trclass="even">
<td>pdfversion</td>
<td>This option determines the compatibility level of PDF to be generated;
the higher level you use, more features can this PDF contain. On the other
hand, high-level PDFs may not be readable by older viewer versions:
<ul>
<li>1.2 (Acrobat Reader 3)</li>
<li>1.3 (Acrobat Reader 4)</li>
<li>1.4 (Acrobat Reader 5)</li>
<li>1.5 (Acrobat Reader 6)</li>
</ul>
</td>
</tr>
<trclass="odd">
<tdid="pixels">pixels</td>
<td>
<p>'Virtual screen' horizontal resolution used during the page rendering
process. As you know, a lot of HTML pages contain dimensions set in pixels
-- images, in most cases, but sometimes fonts. Postscript/PDF files do
not have "pixels", all dimensions are measured in "points"
so we need to provide information about the pixel/point ratio. In our
case, this ratio can be calculated as follows: </p>
<pre>R = (page full width in points - page horizontal margins in points) / virtual resolution</pre>
<p>Thus, you can specify resolution in 800 pixels and make pages designed
for 800x600 resolution to fit your printed page exactly.</p>
<p><tt>index.php</tt> provides three default values for this parameter:
640, 800 and 1024; if you need more exotic value, say 945, you may specify
this in the script query string manually and still get correct results.</p>
<p>Please note that pages may be cut off on the right side if they're designed for the higher resolution
than you've specified (for example, if they have hardcoded table widths or wide images). It is a feature.
In such cases please consider increasing 'pixels' value.</p>
</td>
</tr>
<trclass="even">
<td>process_mode</td>
<td>Set this parameter to 'batch' to process several URLs at once and merge results in one PDF file;
if this parameter have any other value, script runs in normal "single-url" mode.</td>
</tr>
<trclass="odd">
<td>pslevel</td>
<td>
If this parameter have value of '3', the script will generate Postscript Level 3;
otherwise – Postscript Level 2. Default value is '3'. This parameter does not affect PDF generation.
</td>
</tr>
<trclass="even">
<td>ps2pdf</td>
<td>Flag indicating whether script should convert generated Postscript file to PDF using Ghostscript utility.
Note that generally script does not prevent you to enable this filter for 'fpdf' and 'pdflib' methods, but
this will result in conversion error.</td>
</tr>
<trclass="odd">
<tdid="renderfields">renderfields</td>
<td>Flag indicating whether script should render special fields like ##PAGE##. Fields will be rendered if this parameter
is present (even if it has empty value)</td>
</tr>
<trclass="even">
<tdid="renderforms">renderforms</td>
<td>Flag indicating whether script should render interactive form controls. Forms will be rendered if this parameter
is present (even if it has empty value)</td>
</tr>
<trclass="odd">
<tdid="renderimages">renderimages</td>
<td>Flag indicating whether script should fetch and render image files. Images will be rendered if this parameter
is present (even if it has empty value)</td>
</tr>
<trclass="even">
<tdid="renderlinks">renderlinks</td>
<td>Flag indicating whether script should render internal and external hyperlinks. Links will be rendered if this parameter
is present (even if it has empty value)</td>
</tr>
<trclass="odd">
<tdid="scalepoints">scalepoints</td>
<td>
<p>When a page contains both device-dependent (in pixels) and device-independent
(in points) dimensions, we're in trouble. For example, imagine a page
containing absolute-positioned text inside the image; in this case, as
display and paper have different sizes, point/pixel ratio will be different
in the browser window and file rendered by the script, possilibly breaking
the page layout. To prevent this, the <tt>scalepoint</tt> option is used.
</p>
<p>If this parameter is set, the HTML page "points" are scaled
to keep the mentioned ratio, so if you print the resulting file and measure
fonts, they will be smaller than you expect, but the page layout will
be exactly the same as you see in browser window (well, close to it).
If you want fonts to have their real size, disable this option.</p>
<p>Note that this additional scaling applies to points only; such units as in, cm, mm and pc
are not affected by this option.</p></td>
</tr>
<trclass="even">
<td>URL</td>
<td>
<p>
URL you're going to convert (page should be available via either <tt>http</tt>
or <tt>https</tt>). Note that the <tt>http://</tt> prefix is prepended to
this value automatically in case no http or https protocol part is found,
thus you may set the value of this parameter, for example, to <tt>www.google.com</tt>,
not <tt>http://www.google.com</tt>.
</p>
<p>
Note that if you're trying to use URL containing GET request (e.g. http://www.google.com/search?q=test),
you <b>must</b> apply <atitle="Documentation on 'urlencode' - new window"target="_blank"href="http://php.net/urlencode">urlencode</a> function
to this url.
</p>
</td>
</tr>
<trclass="odd">
<tdid="watermarkhtml">watermarkhtml</td>
<td>HTML string containing text to display across every page.</td>