PDF¶
Getting Started with PDF¶
Prerequisites¶
- An HTML code you want to convert into PDF
Transformers¶
HTML into PDF¶
This module is based on the node-html-pdf converter.
Converts an HTML code into a PDF file.
Select format |
Select whether you want to use a predefined format or a custom format.
|
HTML |
Enter the HTML code.
Example of use The output PDF contains a barcode created from the text using the Libre Barcode 128 font.
Using images There are two ways how one can insert an image into the output PDF from the HTML. 1. Standard linking using the img src tag:
2. Mapping the image using Ibexa Connect modules and base64 encoding scheme:
Replace the
Replace "5.data" by mapped data from the previous module, e.g. Dropbox > Get a file. Sample scenario
|
Border |
Define the PDF border size. Allowed units are mm, cm, in, px. |
Header |
|
Footer |
|
Zooming Result PDF When Using Millimeters¶
When millimeters (mm
) are used in the position: absolute;
definition, zoom the result PDF in the body
as seen in the following example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|