pd4ml
Tag transform


JSP to PDF Transformer Tag


Tag Information
Tag Classorg.zefer.pd4ml.taglib.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"<top>,<left>,<bottom>,<right>,<units>" coma-separated integer sizes in specified units ("mm" or "points")
pageOrientationfalsetruejava.lang.String"landscape" or "portrait"
screenWidthtruetrueintsee PD4ML.setHtmlWidth()
enableImageSplitfalsetrueboolean"true" or "false"; see PD4ML.enableImgSplit()
enableTableBreaksfalsetrueboolean"true" or "false"; see PD4ML.enableTableBreaks()
inlinefalsetruebooleanshould the file be shown in the browser window ("true") or offered to be saved to disk ("false")
enableSwingPatchfalsetrueboolean"true" or "false"; see PD4ML.enableRenderingPatch()
interpolateImagesfalsetrueboolean"true" or "false"; see PD4ML.interpolateImages()
encodingfalsetruejava.lang.StringNo Description
urlfalsetruejava.lang.Stringexternal 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.
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
useAFMfalsetruebooleanAvailable 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.
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
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

Variables
No Variables Defined.


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.