Overview | Library | Tag | Help
| FRAMES NO FRAMES

## pd4ml
Tag transform

JSP to PDF Transformer Tag

Tag Information
Tag Class | org.zefer.pd4ml.taglib.PD4MLTransformerTag
TagExtraInfo Class | None
Body Content | JSP
Display Name | None

Attributes
Name | Required | Request-time | Type | Description
authorName | false | true | `java.lang.String` | Author's name to be included to the document properties list
pageFormat | false | true | `java.lang.String` | Predefined document size values like "A4", "LETTER"
fileName | false | true | `java.lang.String` | Desired pdf file name to appear in "Save as..." dialog (note: not all browsers interpret it correctly); useful in combination with inline="false" attribute value
pageInsets | false | true | `java.lang.String` | ",,,," coma-separated integer sizes in specified units ("mm" or "points")
pageOrientation | false | true | `java.lang.String` | "landscape" or "portrait"
screenWidth | true | true | `int` | see PD4ML.setHtmlWidth()
adjustScreenWidth | false | true | `boolean` | sets htmlWidth to the most right margin of the HTML content. Since 3.0.2. See PD4ML.adjustHtmlWidth()
pdfa | false | true | `boolean` | "true" or "false"; see PD4ML.generatePdfa(boolean)
enableImageSplit | false | true | `boolean` | "true" or "false"; see PD4ML.enableImgSplit()
enableTableBreaks | false | true | `boolean` | "true" or "false"; see PD4ML.enableTableBreaks()
inline | false | true | `boolean` | should the file be shown in the browser window ("true") or offered to be saved to disk ("false")
enableSwingPatch | false | true | `boolean` | "true" or "false"; DEPRECATED. See PD4ML.enableRenderingPatch()
interpolateImages | false | true | `boolean` | "true" or "false"; see PD4ML.interpolateImages()
encoding | false | true | `java.lang.String` | No Description
url | false | true | `java.lang.String` | external 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.
forward | false | true | `java.lang.String` | URL 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
http | false | true | `java.lang.String` | "noheader" disables HTTP header data output
useAFM | false | true | `boolean` | Available 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.
debug | false | true | `boolean` | Available 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.
enable | false | true | `boolean` | Available since version 2.1.4. If set to true (default), converts nested HTML to PDF. Otherwise outputs HTML "as is"
outline | false | true | `java.lang.String` | Available 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
fitPageVertically | false | true | `java.lang.String` | Available since version 3.0.4 Forces PD4ML to downscale entire HTML layout to fit a single PDF page vertically
protectPhysicalUnitDimensions | false | true | `java.lang.String` | Available since version 3.0.4 Makes PD4ML to output text respecting font sizes given in "in", "pt", "cm" etc. Use carefully. See PD4ML.protectPhysicalUnitDimensions()
generatePdfForms | false | true | `boolean` | Available since version 3.2.3. Enables/disables convertion of HTML forms to PDF forms (Acroforms)
outputRange | false | true | `String` | Available since version 3.5.5.
outputFormat | false | true | `String` | Available since version 3.5.5.
generateHyperlinks | false | true | `boolean` | Available since version 1.2.0. Enables/disables convertion of HTML hyperlinks to PDF hyperlinks. Supports references to external as well as to internal resources
multicolumn | false | true | `boolean` | Available 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)

Variables
| No Variables Defined.

Overview | Library | Tag | Help
| FRAMES NO FRAMES

Output Generated by Tag Library Documentation Generator. 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.