pd4tl
Tag transform


JSP to PDF Transformer Tag


Tag Information
Tag Classcom.pd4ml.taglib.javax.PD4MLTransformerTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
authorNamefalsetruejava.lang.StringAuthor's name to be included to the document properties list
pageFormatfalsetruejava.lang.StringPredefined document size values like "A4", "LETTER"
fileNamefalsetruejava.lang.StringDesired pdf file name to appear in "Save as..." dialog (note: not all browsers interpret it correctly); useful in combination with inline="false" attribute value
pageInsetsfalsetruejava.lang.String",,,," coma-separated integer sizes in specified units ("mm" or "points")
pageOrientationfalsetruejava.lang.String"landscape" or "portrait"
screenWidthtruetrueintsee PD4ML.setHtmlWidth()
adjustScreenWidthfalsetruebooleansets htmlWidth to the most right margin of the HTML content. Since 3.0.2. See PD4ML.adjustHtmlWidth()
pdfafalsetrueboolean"true" or "false"; see PD4ML.generatePdfa(boolean)
inlinefalsetruebooleanshould the file be shown in the browser window ("true") or offered to be saved to disk ("false")
encodingfalsetruejava.lang.StringNo Description
urlfalsetruejava.lang.Stringexternal URL to be converted to PDF. If the attribute is set, than the HTML/JSP content between and tags is ignored and the given URL is used as PDF source. The URL should be in full form http://server/path/to/file.jsp or in reduced /path/to/file.jsp (in the last case current server address and port are used). Relative paths are not accepted.
forwardfalsetruejava.lang.StringURL of PD4ForwarderServlet to delegate PDF transport function to. The forwarding is used to prevent IllegalStateException in some of servlet runtime and UI framework environments. The servlet should have an access to the JSP session context. Be carefull with big HTML sources: if "url" attribute is not given, they remain in a session context until the session expired
httpfalsetruejava.lang.String"noheader" disables HTTP header data output
useAFMfalsetruebooleanAvailable since version 1.1.0. DEPRECATED (always "true"). If set to true, it forces PD4ML to use Adobe font glyph widths instead of the font metrics provided by Java graphical environment. Usually resulting PDF is rendered more accurate.
debugfalsetruebooleanAvailable since version 1.2.0. If set to true, it forces PD4ML to output absolute paths to images being loaded in order to determine base url or resource referencing problems.
enablefalsetruebooleanAvailable since version 2.1.4. If set to true (default), converts nested HTML to PDF. Otherwise outputs HTML "as is"
outlinefalsetruejava.lang.StringAvailable since version 1.2.0. Enables generation of PDF bookmarks (aka outlines). There are 3 supported values: "anchors" - generates bookmarks from named anchors, "headings" - converts headings h1-h6 structure to bookmarks tree, "none" - does not generate bookmarks
fitPageVerticallyfalsetruejava.lang.StringAvailable since version 3.0.4 Forces PD4ML to downscale entire HTML layout to fit a single PDF page vertically
generatePdfFormsfalsetruebooleanAvailable since version 3.2.3. Enables/disables convertion of HTML forms to PDF forms (Acroforms)
outputRangefalsetrueStringAvailable since version 3.5.5. The pages to output, for example "2+" (all but the first), "1-2", "odd", "even", "skiplast" or "3-7,odd"
outputFormatfalsetrueStringAvailable since version 3.5.5. "pdf" (default), "pdfa", "pdfua", "rtf", "rtfwmf", "docx", "png24", "png8" (the first page), "tiff", "tiffcomp" (the first page), "mpagetiff", "mpagetiffcomp" (all pages)
generateHyperlinksfalsetruebooleanAvailable since version 1.2.0. Enables/disables convertion of HTML hyperlinks to PDF hyperlinks. Supports references to external as well as to internal resources
multicolumnfalsetruebooleanAvailable since version 3.2.4. Forces PD4ML to output multicolumn PDF document. Examples: "2,10mm" (2 columns, 10mm gap), "3,25pt" (3 columns, 25pt gap)
documentTitlefalsetruejava.lang.StringDocument title for the PDF document properties; overrides the HTML . Available since 4.1.2</td> </tr> <tr valign="top"> <td>initialPageNumber</td><td>false</td><td>true</td><td><code>int</code></td><td>Number of the first page, for $[page] and $[total] in headers and footers. Available since 4.1.2</td> </tr> <tr valign="top"> <td>kerning</td><td>false</td><td>true</td><td><code>boolean</code></td><td>"true" applies the kerning of the fonts. Available since 4.1.2</td> </tr> <tr valign="top"> <td>ligatures</td><td>false</td><td>true</td><td><code>boolean</code></td><td>"true" replaces character sequences like "fi" with the ligature glyphs of TrueType fonts. Available since 4.1.2</td> </tr> <tr valign="top"> <td>protectPhysicalUnitDimensions</td><td>false</td><td>true</td><td><code>boolean</code></td><td>"true" keeps sizes in physical units (mm, cm, in, pt) unscaled by the screenWidth to page width ratio. Available since 4.1.2</td> </tr> <tr valign="top"> <td>formFont</td><td>false</td><td>true</td><td><code>java.lang.String</code></td><td>TrueType font of the PDF form field values (see generatePdfForms and <pd4ml:usettf>). Available since 4.1.2</td> </tr> <tr valign="top"> <td>proxy</td><td>false</td><td>true</td><td><code>java.lang.String</code></td><td>HTTP proxy "host:port" to load the document (see url) and its resources. Available since 4.1.2</td> </tr> <tr valign="top"> <td>basicAuthentication</td><td>false</td><td>true</td><td><code>java.lang.String</code></td><td>"login:password" for HTTP Basic authentication when loading the document (see url) and its resources. Available since 4.1.2</td> </tr> </table> <br> <p></p> <table border="1" cellpadding="3" cellspacing="0" width="100%"> <tr bgcolor="#CCCCFF" class="TableHeadingColor"> <td colspan="5"><font size="+2"><b>Variables</b></font></td> </tr> <td colspan="2"><i>No Variables Defined.</i></td> </table> <br> <p></p> <a name="navbar_bottom"></a> <table border="0" width="100%" cellpadding="1" cellspacing="0"> <tr> <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><a NAME="navbar_bottom_firstrow"></a> <table BORDER="0" CELLPADDING="0" CELLSPACING="3"> <tr ALIGN="center" VALIGN="top"> <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td><td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a> </td><td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Tag </font> </td><td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td> </tr> </table> </td><td ALIGN="right" VALIGN="top" ROWSPAN="3"><em></em></td> </tr> <tr> <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2"></font></td><td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a>   <a href="transform.html" target="_top"><b>NO FRAMES</b></a>  <script></script> <noscript> <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a> </noscript> </font></td> </tr> </table> <hr> <small><i> Output Generated by <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation Generator</a>. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved. </i></small> </body> </html>