With the HTML2PDF action, you can convert HTML pages into PDF files using the HTML to PDF service.
The following information will help you with the conversion:
-
Basic information on CSS:
https://pd4ml.tech/css-keywords/ -
Insert page breaks:
<pd4ml:page.break>
Further information at:
https://old.pd4ml.com/cookbook/pdf_dynamic_format_change.htm -
Insert conditional page breaks (conditional page break):
<pd4ml:page.break ifSpaceBelowLessThan="330"> -
Information on inserting headers/footers:
https://old.pd4ml.com/cookbook/pdf_header_footer_generation.htm
Example:HTML<pd4ml:page.footer> footer: $[page] of $[total] </pd4ml:page.footer> -
Prevent a page break in the image:
CSS\@media pdf { TR, IMG {page-break-inside: avoid;} }
Parameters
|
Type |
Name |
Description |
|---|---|---|
|
TEXT |
HTML |
Creates a PDF file from HTML code. |
|
KEYVALUELIST |
Options |
Specifies the parameters for the conversion with the pd4ml options. |
Return
|
Type |
Description |
|---|---|
|
DATASET |
Returns a record with the content (value) of the PDF file and the mime type (content-type). |