I'd like to create a PDF using a combination of static and dynamic content.
The PDF template I'm using has static headers and footers. The dynamic content is generated using a PDF Output Table, and the content is likely to spread over multiple pages. I'm therefore using the replication strategy, replicated for the dynamic document field.
If the dynamic content does indeed run to more than one page, how can I make sure that the PDF Output Table column headers are also repeated at the top of each subsequent required page?
There are a couple of steps you need to take to make sure the column headers are reprinted.
Create a new PDF Output Table containing the column headers. The second PDF Output Table should contain the data.
Make sure both the 'column header' PDF Output Table, and the Output Table with the data, have the exact same column widths.
You may need to uncheck the width dynamic box.
Insert the 'column header' PDF Output Table and the rest of your content in your PDF Output.
Arrange all the content on the PDF Output, adjusting the positions of the content until the Preview feature correctly displays the desired design. The best and quickest way to check this is to use some test data.
Within the PDF Output, set the properties of the PDF Output Table containing the column headers as follows:
- Copy =On This Page And Copies of This Page
- Replication Strategy =Not Replicated
This puts the column headers on each additional page, should such pages be necessary.
Within the PDF Output, set the properties for the PDF Output Table containing the data as follows:
- Copy = Only on This Page
- Replication Strategy =Replicated
The column headers and data are now printed in the exact same location on the second, and subsequent pages.
If you wish to adjust the layout further, please see Enhanced PDF Layouting