Generating complex PDFs on your UI
Provide your users with tools to import case information to their devices.
By configuring an out-of-the-box activity to convert case data to a PDF file, you help
users access and archive information that is related to their cases with less effort and
at any time. Adjust the style of your PDF to the needs of your business by using a
custom compact style sheet (CSS). Creating a text file that holds the custom CSS Enabling CSS for PDF files The HTMLtoPDF activity that you use to generate PDFs from your
application supports a number of parameters for controlling the look and format of your
file. A
true setting helps to avoid
memory leaks for large When set to
true, text fields, checkboxes,
and other form elements become editable. You can generate outlines from
anchor tags. For example: If the table has a header, a
true setting replicates the
header row in each table section. The application processes the
HTML stream and invokes the HTML TIDY utility to get a clean
stream of the HTML input. This method call does
not guarantee that the generated output complies with the
PDF/A format if embedding of fonts is not set to
true. Request the last
rendering status to check if the generated PDF document is
PDF/A compliant. HTML TIDY errors are always
shown. If your PDF content includes external images, the
application must send a request to fetch them. You can set a
timeout to prevent this operation from delaying PDF
generation..ttf
file of the font that you want to
use as a binary file.Creating PDF files by using a compact style sheet
true
.HTMLtoPDF parameters
Parameter Purpose Default value PD4ML Specific? isClearCache Removes all objects (images, CSS) from internal PD4ML caches
when set to true. TTF
and
TTC
files.false Yes pyDocumentViewMode Controls the default document view mode when you open the PDF
in a reader. Available values: empty Yes pyEditablePDF Makes the PDF editable when set to
true, which forces PD4ML to convert
HTML forms into PDF forms (Acroforms). false Yes pyEnableOutlines Generates outlines or bookmarks in the PDF document when set
to true. <a
name="Bookmark1">
.false Yes pyEnableSmartTableBreaks Enables PD4ML insertion of page breaks in between table rows
to make the table portions fit the page height when set to
true. false Yes pyGenerateToolTips Produces tooltips from TITLE HTML
attributes
(PDF Annotations) when set to
true.false Yes pyHTMLDisableProcessing Disables processing the HTML input for conformance when set
to true. false No pyMarginLeft,
pyMarginRight,
pyMarginTop,
pyMarginBottom Defines custom margins in pixels for each side of the
PDF. empty No pyPDFEmbedFont Enables the system to embed the fonts into the PDF document
from pyPDFFontsDirectory when set to
true. false Yes pyPDFEnableHyperlinks Enables hyperlinks in the PDF document when set to true. When
set to false, hyperlinks are not
actionable. false Yes pyPDFFontsDirectory Specifies the path to the directory with font files. empty Yes pyPDFFooterHTMLTemplate Defines the HTML code for the page footer. For example:
<div style="color:blue;">
page $[ page] of total $[total] </div>
empty Yes pyPDFGeneratePDFA Forces PD4ML to output a PDF compliant with the PDF/A
specification for long-term archiving. false Yes pyPDFHeaderHTMLTemplate Defines the HTML code for the page header. For example:
<div style="color:blue;">
page $[ page] of total $[total] </div>
empty Yes pyPDFPageOrientation Sets the page orientation of the PDF document. Available
values are Landscape or
Portrait. Landscape Yes pyPDFPageSize Sets the page size of the PDF document. A4 Yes pyPDFPropsDirectory Specifies the directory to use at run time to generate the
Properties file during PDF generation. empty Yes pyShowWarning Shows the log warning during HTML TIDY parsing when set to
true. false No startPage Sets the page number counter to a specified value for page
numbering in document headers and footers. 1 Yes timeoutForExternalContent Sets the timeout in milliseconds to fetch external
images. -1 (infinite) No
Previous topic Building custom UI capabilities Next topic Creating auto-generated custom controls