Repeating PDF pages

Repeat any page in any PDF, even pages with a fixed list of empty fields.
See docs
Repeating PDF pages
Available with:
Maker plan
Custom plan

Common use cases

Invoices

Extend empty fields within tables on invoices where more line items exist.

Insurance documents

Repeat pages for multiple insured items, claims, or when policyholders have different coverage options, limits, or terms.

Financial paperwork

When you have larger sets of data, like investments, transactions, or beneficiaries, repeating pages is necessary.

Key benefits

Table overflows

When your PDF template has a limited number of rows in a table, repeating pages adds more empty rows and pages to be filled.

Repeat pages in the middle of PDFs

Control where and how the repetition occurs without disrupting your overall document structure.

Inject page numbers into PDFs

Ensure page numbers are correctly organized after you add you pages to your PDFs.

Frequently asked

What are repeating pages in Anvil’s PDF Generation API?

Repeating pages allow you to generate multiple instances of a specific page within a PDF document based on dynamic data. This feature is ideal for creating documents like invoices, reports, or catalogs where certain pages need to be duplicated when data overflows a limited number of empty fields.

How do I set up repeating pages in my PDF template?

To set up repeating pages, define a placeholder in your PDF template where the repeated content should appear. Use Anvil’s templating syntax to specify the data source for the repetition. The API will automatically generate the necessary number of pages by populating the template with each item from your data array.

Can I customize each repeating page individually?

Yes, each repeating page can be customized based on the data provided. You can use conditional logic and dynamic content placeholders within your template to vary the content, layout, and styling of each page according to the specific data it represents.

What data formats are supported for generating repeating pages?

Anvil’s PDF Generation API supports various data formats, including JSON and CSV. You can structure your data as an array of objects, where each object contains the information needed for a single instance of the repeating page. This flexibility allows you to integrate data from different sources seamlessly.

Are there any performance considerations when using repeating pages?

When generating PDFs with a large number of repeating pages, performance can be affected by the volume of data and the complexity of the template. To optimize performance, ensure that your data is efficiently structured and your templates are streamlined. Anvil’s API is designed to handle high volumes, but it's recommended to test your setup to identify and address any potential bottlenecks.

Related resources

Engineering

Repeating PDF pages with the PDF filling API

Learn more
Product news

Which Anvil product should I use?

Learn more
Digital transformation

Anvil features that simplify paperwork

Learn more

Other Workflows features See all

Get a Document AI demo (from a real person)

Request a 30-minute demo and we'll be in touch soon. During the meeting our team will listen to your use case and suggest which Anvil products can help.
    Want to try Anvil first?
    Want to try Anvil first?