Creates an pdf file from content of the app.
Where you can use an action:
Workflow
Parameters:
Attachment section/cell (type:text) - attachment cell address or attachments section, in which created pdf will appear
File name (type:text)(optional parameter) - pdf name; when this parameter is left empty, pdf will be named the same as the app
Sections (type:text or array of texts)(optional parameter) - names of sections, which have to be included in the creation of the pdf; by default all sections are chosen
Page width (type: number) - specifies the minimum page width in pixels that is taken into account when generating the PDF. If the page content is wider than the specified value, the system will automatically scale it - that is, it will reduce it so that everything fits on an A4 page. With the ability to set the width yourself, you can freely adjust the size of the page to fit wide sections.
Page orientation (type: text):
- Portrait - vertical orientation
- Landscape - horizontal orientation
For margins, this defaults to 20px on each side.
Page width
Example 1 - wide section
Set page width: 500px
Table width: 1500px
In this case, the table is much wider than the width of the page, so its content will be cut off.
Example 2 - wide section
Set page width: 2000px
Table width: 1500px
The width of the page is larger than the width of the table. In this situation, the table is displayed in full, and because the available space is larger than needed, large margins appear around the table.
Example 3 - several sections
Page width - 2000px
Section width single fields: 3 x 400px =1200px
In case we have several sections (e.g. 3 single fields of 400px each), their total width is 1200px. Since the width of the page is 2000px, which is more than the space needed, all the fields will fit on one line. In addition, margins will appear around them, since the available width is not fully used.
Example 4 - several sections
Page width: 1000px
Section width single fields: 3 x 600px =1800px
In this case, the total width of the sections is 1800px + section spacing, which is much larger than the width of the page (1000px). Since the width still exceeds the page limit after scaling, part of the section will be moved to the next line.
It is also worth noting that if other factors, such as margins or padding, make the content not fit, some of the fields may be moved to the next row.
0 Comments