A row is also a content container in PDF Butler. Show all contents of a row if a DataSource has records.
Example: #
Lets say, you have multiple blocks of contents with spaces between them and you are only displaying those blocks when the DataSource has records(example, if opportunity has products) using TABLE_BLOCK_NON_EMPTY_LIST.
Because we do not need to display all blocks, the document will show a large gap. To remove this, we can use TABLE_ROW_NON_EMPTY_LIST
In the Template where you have multiple blocks of contents, you need to make sure to add them as rows and extra spaces should be given inside the row.
Steps to achieve this:
- Create SOQL List type Dummy Data Source
- Create Doc Config.
- Open PDF Builder from Doc Config and Load your Data Source. Download the sample template here upload your Doc Config Document.
- Create 3 ConfigTypes of type TABLE_ROW_NON_EMPTY_LIST for the 3 merge fields that are in your Doc Config Document as shown below.
- Click on Test Conversion in PDF Builder and you will see below.
Since we included our dummy data source, the PDF conversion displays all the rows of data, as shown below. - Now remove the test data in Test Conversion window as shown below and generate the document again.
In the generated document you will not see all the extra spaces between rows. If you don’t use TABLE_ROW_NON_EMPTY_LIST, all the 3 extra spaces of three rows will appear in your document.