Package com.pd4ml
Class Constants
- java.lang.Object
-
- com.pd4ml.util.Base
-
- com.pd4ml.Constants
-
public class Constants extends com.pd4ml.util.BaseConstants of the PD4ML API: PDF permission flags,PD4ML.setParam(String, String)parameter keys,PD4ML.getLastRenderInfo(String)keys, output formats, encryption methods and error policies.The class also inherits the
LOG_*log level flags used byPD4ML.setLogLevel(int), for exampleConstants.LOG_VERBOSE.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConstants.ErrorPolicyHow strictly problems found during a conversion are treated.
-
Field Summary
Fields Modifier and Type Field Description static intAES_128BITAES encryption with a 128-bit key (PDF 1.6 and later).static intAES_256BITAES encryption with a 256-bit key (PDF 1.7 extension level 3 and later).static intAllowAnnotatePermission (bit 6, value 32): add or modify annotations and fill in form fields; together withAllowModify, also create or modify form fields.static intAllowAssemblyPermission (bit 11, value 1024): assemble the document (insert, rotate or delete pages, create bookmarks or thumbnails), even ifAllowModifyis not set.static intAllowContentExtractionPermission (bit 10, value 512): extract text and graphics for accessibility, for example for screen readers.static intAllowCopyPermission (bit 5, value 16): copy or otherwise extract text and graphics from the document.static intAllowDegradedPrintPermission (bit 3, value 4): print the document, possibly at a degraded quality unlessAllowPrintis also set.static intAllowFillingFormsPermission (bit 9, value 256): fill in existing form fields, including signature fields, even ifAllowAnnotateis not set.static intAllowModifyPermission (bit 4, value 8): modify the document content by operations other than those controlled byAllowAnnotate,AllowFillingFormsandAllowAssembly.static intAllowPrintPermission (bits 3 and 12, value 2052): print the document at full quality, so that a faithful digital copy of it could be generated from the print.static intCENTER_ALIGNCenter alignment.static intDefaultPermissionsAll permissions: allows every operation on the document.static java.lang.StringDOCXOutput format "docx": a Microsoft Word document.static java.lang.StringISO8859_1The ISO-8859-1 (Latin-1) encoding name.static intLEFT_ALIGNLeft alignment.static java.lang.StringMULTIPAGE_TIFFImage format "mpagetiff": a single uncompressed TIFF image with all pages.static java.lang.StringMULTIPAGE_TIFF_COMPRESSEDImage format "mpagetiffcomp": a single compressed (PackBits) TIFF image with all pages.static java.lang.StringPD4ML_ALLOWED_RESOURCE_LOCATION"pd4ml.allowed.resource.location": a URL prefix that restricts where external resources (stylesheets, images, attachments) may be loaded from.static java.lang.StringPD4ML_BACKGROUND_AS_PATTERNS"pd4ml.background.as.patterns": "false" switches back to the background image rendering used before v3.8.5fx3.static java.lang.StringPD4ML_CACHE_ENABLE"pd4ml.cache.enable": "false" disables the resource cache, so every resource is loaded anew.static java.lang.StringPD4ML_CACHE_IMAGES_IN_TMP_DIR"pd4ml.cache.images.in.tmp.dir": "true" makes PD4ML keep loaded images in temporary files instead of memory.static java.lang.StringPD4ML_CONFIG_FILE"pd4ml.config.file": a JVM system property with the location of a configuration file in.propertiesformat.static java.lang.StringPD4ML_CONFIG_HANDLER_CLASS"pd4ml.config.handler.class": a JVM system property with the name of a class that reads the configuration file instead of the defaultPD4ConfigHandler.static java.lang.StringPD4ML_CSS_IMPORT_DIRECTIVE"pd4ml.css.import.directive": "disable" makes PD4ML ignore@importrules in stylesheets.static java.lang.StringPD4ML_DISABLE_EXTERNAL_ATTACHMENTS"pd4ml.disable.external.attachments": "true" stops PD4ML from loading<pd4ml:attachment>files from the local file system or from URLs.static java.lang.StringPD4ML_DISABLE_WOFF"pd4ml.disable.woff": "true" disables WOFF web fonts in@font-facerules, so the fallback fonts are used.static java.lang.StringPD4ML_DISABLE_WOFF2"pd4ml.disable.woff2": "true" disables WOFF2 web fonts in@font-facerules, so the fallback fonts are used.static java.lang.StringPD4ML_DOCUMENT_DATE"pd4ml.document.date": overrides the creation date in the PDF document properties, for example to produce byte-identical output for comparisons.static java.lang.StringPD4ML_DOCUMENT_HEIGHT_PXKey forPD4ML.getLastRenderInfo(String): returns the height of the laid-out document in pixels, ignoring page breaks, as aLong.static java.lang.StringPD4ML_DOCUMENT_VIEW_MODE"pd4ml.document.view.mode": the page layout a PDF viewer initially uses to show the document: "SinglePage" (the default; one page at a time), "OneColumn" (continuous), "TwoColumnLeft", "TwoColumnRight" (two pages side by side, continuous, odd pages on the left or right), "TwoPageLeft" or "TwoPageRight" (two pages side by side, one spread at a time).static java.lang.StringPD4ML_DOCUMENT_XMP_DATE"pd4ml.document.xmp.date": overrides the dates in the XMP metadata of the PDF (written for PDF/A, PDF/UA and custom metadata), for example to produce byte-identical output.static java.lang.StringPD4ML_DUMP_DEFAULT_STYLE"pd4ml.dump.no.default.style": for debugging only.static java.lang.StringPD4ML_ENABLE_HTTP_ERRORS"pd4ml.enable.http.errors": intended to report HTTP errors when loading the main document as exceptions instead of producing an empty document.static java.lang.StringPD4ML_EXTRA_RESOURCE_LOADERS"pd4ml.extra.resource.loaders".static java.lang.StringPD4ML_FAKE_BROWSER"pd4ml.fake.browser": "true" makes PD4ML identify itself as a regular web browser in HTTP requests, for servers that reject unknown clients.static java.lang.StringPD4ML_FIX20130116"pd4ml.fix.20130116": a workaround for table rows repeated after a page break in old versions.static java.lang.StringPD4ML_FORCE_RTL"pd4ml.force.rtl": "true" applies right-to-left word order to all text, including text in left-to-right languages.static java.lang.StringPD4ML_GENERATE_TOOLTIPS"pd4ml.generate.tooltips": "true" turns thetitleattributes of HTML elements into PDF annotations, which viewers show as tooltips.static java.lang.StringPD4ML_HEADER_HEIGHT_LIMIT"pd4ml.header.height.limit": "false" removed the limit of page header and footer height to one third of the page height in old versions.static java.lang.StringPD4ML_HTML_IN_DYNAMIC_DATA"pd4ml.html.in.dynamic.data": "enable" makes PD4ML parse the values set withPD4ML.setDynamicData(java.util.Map)as HTML instead of inserting them as text.static java.lang.StringPD4ML_HTTP_REQUEST_DISPATCHER"pd4ml.http.request.dispatcher".static java.lang.StringPD4ML_IDS_AS_DESTINATIONS"pd4ml.ids.as.destinations": "true" (the default) lets links address any element by itsidattribute (<a href="#chapter2">), in addition to<a name="...">anchors; "false" restricts link destinations to named anchors.static java.lang.StringPD4ML_IMAGE_REPOSITORY"pd4ml.image.repository".static java.lang.StringPD4ML_INFO_AUTHORIntended as aPD4ML.getLastRenderInfo(String)key for the document author; not supported by this version of PD4ML (nullis returned).static java.lang.StringPD4ML_INFO_TITLEIntended as aPD4ML.getLastRenderInfo(String)key for the document title; not supported by this version of PD4ML (nullis returned).static java.lang.StringPD4ML_INITIAL_PAGE_NUMBER"pd4ml.initial.page.number": the number of the first page, as an integer string.static java.lang.StringPD4ML_KEEP_TRAILING_BLANK_PAGES"pd4ml.keep.trailing.blank.pages": "true" keeps blank pages at the end of the document.static java.lang.StringPD4ML_MAX_CACHE_ENTRIES"pd4ml.max.cache.entries".static java.lang.StringPD4ML_MAX_CACHE_SIZE"pd4ml.max.cache.size": the maximum number of resources (images, stylesheets and so on) kept in the resource cache; 1024 by default.static java.lang.StringPD4ML_MAX_CACHE_VOLUME"pd4ml.max.cache.volume": the maximum total size of the resource cache in bytes; unlimited by default.static java.lang.StringPD4ML_MEDIA_TYPE_PRINT"pd4ml.media.type.print": controls which CSS media types apply.static java.lang.StringPD4ML_OMIT_DEFAULT_STYLE"pd4ml.omit.default.style": for debugging only.static java.lang.StringPD4ML_PDFA_STATUSKey forPD4ML.getLastRenderInfo(String): returns the warnings and errors recorded during the last conversion, as aStatusMessage[].static java.lang.StringPD4ML_PRINT_DIALOG_POPUP"pd4ml.print.dialog.popup".static java.lang.StringPD4ML_RIGHT_EDGE_PXKey forPD4ML.getLastRenderInfo(String): returns the right edge of the content of the last conversion in pixels, as aLong.static java.lang.StringPD4ML_SESSIONID_APPEND"pd4ml.sessionid.append": "false" stops PD4ML from appending the session ID set withPD4ML.setSessionID(String)to resource URLs.static java.lang.StringPD4ML_SESSIONID_VARNAME"pd4ml.sessionid.varname": the name of the URL parameter that carries the session ID set withPD4ML.setSessionID(String); "jsessionid" by default.static java.lang.StringPD4ML_SOCKET_TIMEOUT"pd4ml.socket.timeout": the connect and read timeout for HTTP(S) resource requests, in milliseconds.static java.lang.StringPD4ML_STYLESHEETS_TO_OMIT"pd4ml.stylesheets.to.omit": a semicolon-separated list of strings; stylesheets whose URL contains one of them are not loaded, for example to skip screen-only frameworks.static java.lang.StringPD4ML_TOTAL_PAGESKey forPD4ML.getLastRenderInfo(String): returns the number of pages of the last conversion, as aLong.static java.lang.StringPDFOutput format "pdf": a regular PDF document (PDF 1.7).static java.lang.StringPDFAOutput format "pdfa": a PDF/A-1b document for long-term archiving.static java.lang.StringPDFUAOutput format "pdfua": an accessible, tagged PDF that conforms to both PDF/UA-1 and PDF/A-2a.static java.lang.StringPNG24Image format "png24": PNG images with 24-bit color and an alpha channel (transparency).static java.lang.StringPNG8Image format "png8": PNG images with 24-bit color and no transparency.static intRC4_128BITRC4 encryption with a 128-bit key.static intRC4_40BITRC4 encryption with a 40-bit key.static intRIGHT_ALIGNRight alignment.static java.lang.StringRTFOutput format "rtf": an RTF document with images embedded in their original format, which Microsoft Word and most other editors support.static java.lang.StringRTF_WMFOutput format "rtfwmf": an RTF document with images converted to WMF, for viewers such as WordPad that support no other image format.static java.lang.StringTIFFImage format "tiff": one uncompressed TIFF image per page.static java.lang.StringTIFF_COMPRESSEDImage format "tiffcomp": one compressed (PackBits) TIFF image per page.static doubleTRANSLATE_FACTORThe number of PDF points per millimeter: 2.835.static java.lang.StringUTF8The UTF-8 encoding name.static java.lang.StringWINDOWS_1252The Windows-1252 encoding name.
-
Constructor Summary
Constructors Constructor Description Constants()
-
-
-
Field Detail
-
TRANSLATE_FACTOR
public static final double TRANSLATE_FACTOR
The number of PDF points per millimeter: 2.835.- See Also:
- Constant Field Values
-
DefaultPermissions
public static final int DefaultPermissions
All permissions: allows every operation on the document.
-
AllowDegradedPrint
public static final int AllowDegradedPrint
Permission (bit 3, value 4): print the document, possibly at a degraded quality unlessAllowPrintis also set.
-
AllowModify
public static final int AllowModify
Permission (bit 4, value 8): modify the document content by operations other than those controlled byAllowAnnotate,AllowFillingFormsandAllowAssembly.
-
AllowCopy
public static final int AllowCopy
Permission (bit 5, value 16): copy or otherwise extract text and graphics from the document.
-
AllowAnnotate
public static final int AllowAnnotate
Permission (bit 6, value 32): add or modify annotations and fill in form fields; together withAllowModify, also create or modify form fields.
-
AllowFillingForms
public static final int AllowFillingForms
Permission (bit 9, value 256): fill in existing form fields, including signature fields, even ifAllowAnnotateis not set.
-
AllowContentExtraction
public static final int AllowContentExtraction
Permission (bit 10, value 512): extract text and graphics for accessibility, for example for screen readers.
-
AllowAssembly
public static final int AllowAssembly
Permission (bit 11, value 1024): assemble the document (insert, rotate or delete pages, create bookmarks or thumbnails), even ifAllowModifyis not set.
-
AllowPrint
public static final int AllowPrint
Permission (bits 3 and 12, value 2052): print the document at full quality, so that a faithful digital copy of it could be generated from the print. With onlyAllowDegradedPrint, printing may be limited to a low-quality representation.
-
PD4ML_MAX_CACHE_ENTRIES
public static final java.lang.String PD4ML_MAX_CACHE_ENTRIES
"pd4ml.max.cache.entries". Not supported by this version of PD4ML; usePD4ML_MAX_CACHE_SIZEto limit the number of cached resources.- See Also:
PD4ML_CACHE_ENABLE, Constant Field Values
-
PD4ML_MAX_CACHE_SIZE
public static final java.lang.String PD4ML_MAX_CACHE_SIZE
"pd4ml.max.cache.size": the maximum number of resources (images, stylesheets and so on) kept in the resource cache; 1024 by default. Can also be set as a JVM system property.
-
PD4ML_MAX_CACHE_VOLUME
public static final java.lang.String PD4ML_MAX_CACHE_VOLUME
"pd4ml.max.cache.volume": the maximum total size of the resource cache in bytes; unlimited by default. Can also be set as a JVM system property.
-
PD4ML_IDS_AS_DESTINATIONS
public static final java.lang.String PD4ML_IDS_AS_DESTINATIONS
"pd4ml.ids.as.destinations": "true" (the default) lets links address any element by itsidattribute (<a href="#chapter2">), in addition to<a name="...">anchors; "false" restricts link destinations to named anchors. Set it as a JVM system property;PD4ML.setParam(String, String)ignores it.- See Also:
- Constant Field Values
-
PD4ML_EXTRA_RESOURCE_LOADERS
public static final java.lang.String PD4ML_EXTRA_RESOURCE_LOADERS
"pd4ml.extra.resource.loaders". Has no effect in this version of PD4ML; usePD4ML.addCustomResourceProvider(String)to add resource loaders.- See Also:
- Constant Field Values
-
PD4ML_DOCUMENT_VIEW_MODE
public static final java.lang.String PD4ML_DOCUMENT_VIEW_MODE
"pd4ml.document.view.mode": the page layout a PDF viewer initially uses to show the document: "SinglePage" (the default; one page at a time), "OneColumn" (continuous), "TwoColumnLeft", "TwoColumnRight" (two pages side by side, continuous, odd pages on the left or right), "TwoPageLeft" or "TwoPageRight" (two pages side by side, one spread at a time).
-
PD4ML_DOCUMENT_DATE
public static final java.lang.String PD4ML_DOCUMENT_DATE
"pd4ml.document.date": overrides the creation date in the PDF document properties, for example to produce byte-identical output for comparisons. The value is written as is, so it must be a PDF date string such as "D:20240131120000Z". Can also be set as a JVM system property.
-
PD4ML_DOCUMENT_XMP_DATE
public static final java.lang.String PD4ML_DOCUMENT_XMP_DATE
"pd4ml.document.xmp.date": overrides the dates in the XMP metadata of the PDF (written for PDF/A, PDF/UA and custom metadata), for example to produce byte-identical output. The value is written as is, so it must be an XMP date such as "2024-01-31T12:00:00Z". Can also be set as a JVM system property.
-
PD4ML_FAKE_BROWSER
public static final java.lang.String PD4ML_FAKE_BROWSER
"pd4ml.fake.browser": "true" makes PD4ML identify itself as a regular web browser in HTTP requests, for servers that reject unknown clients. "false" by default.
-
PD4ML_CACHE_ENABLE
public static final java.lang.String PD4ML_CACHE_ENABLE
"pd4ml.cache.enable": "false" disables the resource cache, so every resource is loaded anew. "true" by default.
-
PD4ML_SESSIONID_APPEND
public static final java.lang.String PD4ML_SESSIONID_APPEND
"pd4ml.sessionid.append": "false" stops PD4ML from appending the session ID set withPD4ML.setSessionID(String)to resource URLs. "true" by default. Can also be set as a JVM system property.
-
PD4ML_SOCKET_TIMEOUT
public static final java.lang.String PD4ML_SOCKET_TIMEOUT
"pd4ml.socket.timeout": the connect and read timeout for HTTP(S) resource requests, in milliseconds. By default the JVM defaults apply, which may mean no timeout at all. Can also be set as a JVM system property.
-
PD4ML_PRINT_DIALOG_POPUP
public static final java.lang.String PD4ML_PRINT_DIALOG_POPUP
"pd4ml.print.dialog.popup". Has no effect in this version of PD4ML; to open the print dialog when the document is opened, add an "OpenAction" handler withPD4ML.addDocumentActionHandler(String, String), for example"this.print(true);".- See Also:
- Constant Field Values
-
PD4ML_MEDIA_TYPE_PRINT
public static final java.lang.String PD4ML_MEDIA_TYPE_PRINT
"pd4ml.media.type.print": controls which CSS media types apply. By default PD4ML applies stylesheets and@mediarules for "screen", "all" and "pdf". "add" applies "print" rules as well; "override" applies "print" instead of "screen".
-
PD4ML_CSS_IMPORT_DIRECTIVE
public static final java.lang.String PD4ML_CSS_IMPORT_DIRECTIVE
"pd4ml.css.import.directive": "disable" makes PD4ML ignore@importrules in stylesheets. Not accepted byPD4ML.setParam(String, String)in this version of PD4ML, so it currently has no effect.- See Also:
- Constant Field Values
-
PD4ML_SESSIONID_VARNAME
public static final java.lang.String PD4ML_SESSIONID_VARNAME
"pd4ml.sessionid.varname": the name of the URL parameter that carries the session ID set withPD4ML.setSessionID(String); "jsessionid" by default. Set it as a JVM system property.- See Also:
- Constant Field Values
-
PD4ML_INITIAL_PAGE_NUMBER
public static final java.lang.String PD4ML_INITIAL_PAGE_NUMBER
"pd4ml.initial.page.number": the number of the first page, as an integer string. Same asPD4ML.setInitialPageNumber(int).
-
PD4ML_HTML_IN_DYNAMIC_DATA
public static final java.lang.String PD4ML_HTML_IN_DYNAMIC_DATA
"pd4ml.html.in.dynamic.data": "enable" makes PD4ML parse the values set withPD4ML.setDynamicData(java.util.Map)as HTML instead of inserting them as text. Use with care: unbalanced markup in a value can break the layout of the whole document.
-
PD4ML_ALLOWED_RESOURCE_LOCATION
public static final java.lang.String PD4ML_ALLOWED_RESOURCE_LOCATION
"pd4ml.allowed.resource.location": a URL prefix that restricts where external resources (stylesheets, images, attachments) may be loaded from. Resources outside of it, and paths containing "..", are rejected. A security measure for documents from untrusted sources. Font directories and classpath (java:) resources are not affected.
-
PD4ML_DISABLE_EXTERNAL_ATTACHMENTS
public static final java.lang.String PD4ML_DISABLE_EXTERNAL_ATTACHMENTS
"pd4ml.disable.external.attachments": "true" stops PD4ML from loading<pd4ml:attachment>files from the local file system or from URLs. Attachments embedded in the document asdata:URLs still work. A security measure for documents from untrusted sources.
-
PD4ML_GENERATE_TOOLTIPS
public static final java.lang.String PD4ML_GENERATE_TOOLTIPS
"pd4ml.generate.tooltips": "true" turns thetitleattributes of HTML elements into PDF annotations, which viewers show as tooltips. "false" by default.
-
PD4ML_CACHE_IMAGES_IN_TMP_DIR
public static final java.lang.String PD4ML_CACHE_IMAGES_IN_TMP_DIR
"pd4ml.cache.images.in.tmp.dir": "true" makes PD4ML keep loaded images in temporary files instead of memory. Reduces heap usage for documents with many or large images, at some cost in speed. "false" by default. Can also be set as a JVM system property.
-
PD4ML_HTTP_REQUEST_DISPATCHER
public static final java.lang.String PD4ML_HTTP_REQUEST_DISPATCHER
"pd4ml.http.request.dispatcher". Accepted byPD4ML.setParam(String, String)but has no effect in this version of PD4ML: whenPD4ML.useHttpRequest(Object, Object)is used, resources of the current web application are always loaded through the servletRequestDispatcher.- See Also:
- Constant Field Values
-
PD4ML_PDFA_STATUS
public static final java.lang.String PD4ML_PDFA_STATUS
Key forPD4ML.getLastRenderInfo(String): returns the warnings and errors recorded during the last conversion, as aStatusMessage[]. An empty array means no problems were recorded. For PDF/A output, an entry withStatusMessage.isError()means the result does not conform to PDF/A.
-
PD4ML_DOCUMENT_HEIGHT_PX
public static final java.lang.String PD4ML_DOCUMENT_HEIGHT_PX
Key forPD4ML.getLastRenderInfo(String): returns the height of the laid-out document in pixels, ignoring page breaks, as aLong.- See Also:
- Constant Field Values
-
PD4ML_RIGHT_EDGE_PX
public static final java.lang.String PD4ML_RIGHT_EDGE_PX
Key forPD4ML.getLastRenderInfo(String): returns the right edge of the content of the last conversion in pixels, as aLong. A value larger than the HTML width means some content does not fit; if the document has elements with a width of 100%, the value is close to the HTML width.
-
PD4ML_TOTAL_PAGES
public static final java.lang.String PD4ML_TOTAL_PAGES
Key forPD4ML.getLastRenderInfo(String): returns the number of pages of the last conversion, as aLong.- See Also:
- Constant Field Values
-
PD4ML_INFO_AUTHOR
public static final java.lang.String PD4ML_INFO_AUTHOR
Intended as aPD4ML.getLastRenderInfo(String)key for the document author; not supported by this version of PD4ML (nullis returned).- See Also:
- Constant Field Values
-
PD4ML_INFO_TITLE
public static final java.lang.String PD4ML_INFO_TITLE
Intended as aPD4ML.getLastRenderInfo(String)key for the document title; not supported by this version of PD4ML (nullis returned). UsePD4ML.getDocumentTitle()instead.- See Also:
- Constant Field Values
-
PD4ML_FORCE_RTL
public static final java.lang.String PD4ML_FORCE_RTL
"pd4ml.force.rtl": "true" applies right-to-left word order to all text, including text in left-to-right languages. "false" by default. Can also be set as a JVM system property.
-
PD4ML_BACKGROUND_AS_PATTERNS
public static final java.lang.String PD4ML_BACKGROUND_AS_PATTERNS
"pd4ml.background.as.patterns": "false" switches back to the background image rendering used before v3.8.5fx3. "true" by default. Set it as a JVM system property;PD4ML.setParam(String, String)ignores it.- See Also:
- Constant Field Values
-
PD4ML_CONFIG_FILE
public static final java.lang.String PD4ML_CONFIG_FILE
"pd4ml.config.file": a JVM system property with the location of a configuration file in.propertiesformat. The configuration applies PD4ML API settings to every conversion without changing the application code. Used by theorg.zefer.pd4ml.PD4MLcompatibility API.- See Also:
PD4ConfigHandler, Constant Field Values
-
PD4ML_CONFIG_HANDLER_CLASS
public static final java.lang.String PD4ML_CONFIG_HANDLER_CLASS
"pd4ml.config.handler.class": a JVM system property with the name of a class that reads the configuration file instead of the defaultPD4ConfigHandler.- See Also:
PD4ML_CONFIG_FILE, Constant Field Values
-
PD4ML_IMAGE_REPOSITORY
public static final java.lang.String PD4ML_IMAGE_REPOSITORY
"pd4ml.image.repository". Accepted byPD4ML.setParam(String, String)but has no effect in this version of PD4ML.- See Also:
- Constant Field Values
-
PD4ML_FIX20130116
public static final java.lang.String PD4ML_FIX20130116
"pd4ml.fix.20130116": a workaround for table rows repeated after a page break in old versions. Has no effect in this version of PD4ML.- See Also:
- Constant Field Values
-
PD4ML_STYLESHEETS_TO_OMIT
public static final java.lang.String PD4ML_STYLESHEETS_TO_OMIT
"pd4ml.stylesheets.to.omit": a semicolon-separated list of strings; stylesheets whose URL contains one of them are not loaded, for example to skip screen-only frameworks.
-
PD4ML_ENABLE_HTTP_ERRORS
public static final java.lang.String PD4ML_ENABLE_HTTP_ERRORS
"pd4ml.enable.http.errors": intended to report HTTP errors when loading the main document as exceptions instead of producing an empty document. Has no effect in this version of PD4ML; usePD4ML.setErrorPolicy(ErrorPolicy)to fail on resources that cannot be loaded.- See Also:
- Constant Field Values
-
PD4ML_OMIT_DEFAULT_STYLE
public static final java.lang.String PD4ML_OMIT_DEFAULT_STYLE
"pd4ml.omit.default.style": for debugging only. Skips the built-in default stylesheet that defines the basic HTML element styles, so documents lose most of their formatting.
-
PD4ML_DUMP_DEFAULT_STYLE
public static final java.lang.String PD4ML_DUMP_DEFAULT_STYLE
"pd4ml.dump.no.default.style": for debugging only. "false" leaves the default styles out ofPD4ML.dump(int)output. The setting is global and affects all instances in the JVM.
-
PD4ML_HEADER_HEIGHT_LIMIT
public static final java.lang.String PD4ML_HEADER_HEIGHT_LIMIT
"pd4ml.header.height.limit": "false" removed the limit of page header and footer height to one third of the page height in old versions. Has no effect in this version of PD4ML.- Since:
- v395fx4
- See Also:
- Constant Field Values
-
PD4ML_KEEP_TRAILING_BLANK_PAGES
public static final java.lang.String PD4ML_KEEP_TRAILING_BLANK_PAGES
"pd4ml.keep.trailing.blank.pages": "true" keeps blank pages at the end of the document. By default ("false") they are removed.- Since:
- v407
- See Also:
PD4ML.setParam(String, String), Constant Field Values
-
PD4ML_DISABLE_WOFF
public static final java.lang.String PD4ML_DISABLE_WOFF
"pd4ml.disable.woff": "true" disables WOFF web fonts in@font-facerules, so the fallback fonts are used. "false" by default.- Since:
- v4.0.16
- See Also:
PD4ML.setParam(String, String), Constant Field Values
-
PD4ML_DISABLE_WOFF2
public static final java.lang.String PD4ML_DISABLE_WOFF2
"pd4ml.disable.woff2": "true" disables WOFF2 web fonts in@font-facerules, so the fallback fonts are used. "false" by default.- Since:
- v4.0.16
- See Also:
PD4ML.setParam(String, String), Constant Field Values
-
PDF
public static final java.lang.String PDF
Output format "pdf": a regular PDF document (PDF 1.7).
-
PDFA
public static final java.lang.String PDFA
Output format "pdfa": a PDF/A-1b document for long-term archiving. For other PDF/A levels usePD4ML.writePDF(java.io.OutputStream, PdfSpec).
-
PDFUA
public static final java.lang.String PDFUA
Output format "pdfua": an accessible, tagged PDF that conforms to both PDF/UA-1 and PDF/A-2a.
-
DOCX
public static final java.lang.String DOCX
Output format "docx": a Microsoft Word document.
-
RTF
public static final java.lang.String RTF
Output format "rtf": an RTF document with images embedded in their original format, which Microsoft Word and most other editors support.
-
RTF_WMF
public static final java.lang.String RTF_WMF
Output format "rtfwmf": an RTF document with images converted to WMF, for viewers such as WordPad that support no other image format.
-
PNG8
public static final java.lang.String PNG8
Image format "png8": PNG images with 24-bit color and no transparency.
-
PNG24
public static final java.lang.String PNG24
Image format "png24": PNG images with 24-bit color and an alpha channel (transparency).
-
TIFF
public static final java.lang.String TIFF
Image format "tiff": one uncompressed TIFF image per page. Requires the JAI library in the classpath.
-
TIFF_COMPRESSED
public static final java.lang.String TIFF_COMPRESSED
Image format "tiffcomp": one compressed (PackBits) TIFF image per page. Requires the JAI library in the classpath.
-
MULTIPAGE_TIFF
public static final java.lang.String MULTIPAGE_TIFF
Image format "mpagetiff": a single uncompressed TIFF image with all pages. Requires the JAI library in the classpath.
-
MULTIPAGE_TIFF_COMPRESSED
public static final java.lang.String MULTIPAGE_TIFF_COMPRESSED
Image format "mpagetiffcomp": a single compressed (PackBits) TIFF image with all pages. Requires the JAI library in the classpath.
-
LEFT_ALIGN
public static final int LEFT_ALIGN
Left alignment.
-
CENTER_ALIGN
public static final int CENTER_ALIGN
Center alignment.
-
RIGHT_ALIGN
public static final int RIGHT_ALIGN
Right alignment.
-
RC4_40BIT
public static final int RC4_40BIT
RC4 encryption with a 40-bit key. Weak; only for very old PDF viewers.
-
RC4_128BIT
public static final int RC4_128BIT
RC4 encryption with a 128-bit key. Weak; only for old PDF viewers.
-
AES_128BIT
public static final int AES_128BIT
AES encryption with a 128-bit key (PDF 1.6 and later). The default.
-
AES_256BIT
public static final int AES_256BIT
AES encryption with a 256-bit key (PDF 1.7 extension level 3 and later). The strongest method.
-
ISO8859_1
public static final java.lang.String ISO8859_1
The ISO-8859-1 (Latin-1) encoding name.- See Also:
- Constant Field Values
-
WINDOWS_1252
public static final java.lang.String WINDOWS_1252
The Windows-1252 encoding name.- See Also:
- Constant Field Values
-
UTF8
public static final java.lang.String UTF8
The UTF-8 encoding name.- See Also:
- Constant Field Values
-
-