pd4tl
Tag transform


JSP to PDF Transformer Tag


Tag Information
Tag Classcom.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",,,," 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.
outputFormatfalsetrueStringAvailable since version 3.5.5.
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)

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.