Sample Section
Zigflow will automatically detect the sample section table that will be used for generating your documents. This table will be used as a template for all the sections in your quotation, invoice, delivery note, etc.
The section table is determined by a finding a table with the tags {SectionName}, {SectionVAT}, {SectionNet}, {SectionTotal}, or Item tag such as {ItemDescription}.
The sample section must be a complete table and should not be separated into multiple tables. Multiple section tables will be treated as individual sample sections.
Inserting Page Breaks (Forcing a New Page)
A section can force a new page after it either by having the tag {PageBreak} in the template (which will force a new page every time a section changes) or you can add them when you need to in a specific quote by selecting the section menu and clicking on 'Add Page Break After':
Note: This will not work when you have set up TableStyles.
Section Images and Text
You can have up to 10 images in a section header (this is different from the number of products and services with their images you can add as items. You can have an almost unlimited number of these).
Use the tag {SectionNotes} for the text and the tags {SectionImage1}, {SectionImage2}, {SectionImage3}...{SectionImage9} for the images.
Line Item Table Row Template
Each section table can consist of a sample line item row. This row will be used as a template to help populate the section table with its corresponding line items.
The line item row is determined by the use of the Item tags such as {ItemDescription}, {ItemQty} ,{ItemCode}, etc.
It is possible to use multiple table rows as a template but we recommend using only one table row to avoid formatting issues.
How Line Item Images are Positioned & Scaled
When generating the PDF document, line item images are placed using the tag {ItemImage}. When the image is placed the image is resized to fit inside the table cell width. For the best results, create a table cell which has the same width and height.
Situation 1: Tall Images
For uploaded images that are tall (images with heights larger than their widths) will be resized to have the height match the column width.
Situation 2: Wide Images
For uploaded images that are wide (images with widths larger than their heights), will be resized to have the width match the column width.
Section Formatting Tags
To help you format your PDF document we have included additional formatting tags for sections. These tags should be placed anywhere inside the sample section table. These tags will automatically be removed during the PDF generation.
Tag | Formatting |
---|---|
{PageBreak} | This will add page break at the end of every section. This will result in each section appearing on its own page. |
{KeepTogether} | This formats the all the sections produced to remain as a whole per page. This prevents the tables produced from overflowing to the next page. If this tag is not present, then only the section tables after the first will be kept together per page. |
{IgnoreKeepTogether} | The format the all the sections produced to overflow to the next page. If this tag is not present, then only the section tables after the first will be kept together per page. |
Repeating Item Row Values
To prevent section item from being repeated multiple time please add the tag {NoRepeat} to the table cell you do not want to be repeated
Repetitions are determined by items to share the same product code.