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 | "<top>,<left>,<bottom>,<right>,<units>"
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() |
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"; 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 <pd4ml:transform>
and </pd4ml:transform> 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 |
useAFM | false | true | boolean | Available since version 1.1.0. 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 |
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 |