PDF-API.io

Product details

Q: Support for arrays?

Does the API support iterating over data? For example, if I have a database with several records, would I be able to iterate over the records and output the data in a single PDF?

EDIT: I see in the documentation this is possible for tables. How about for other elements? For example, I want to output headings and text, and iterate the data throughout the PDF.

RockyyEdited Oct 20, 2024
Founder Team
PDF_API_IO

PDF_API_IO

Oct 21, 2024

A: Currently, iterating over data is supported for tables. However, for other elements like headings and text, this is not yet available. We are working on adding a new "group" element that will function like a sub-template and allow you to repeat sections of content dynamically throughout the PDF. This will provide more flexibility for non-table data.

Helpful?
Log in to join the conversation
Posted: Oct 21, 2024

Are you referring to the visual editor only, or is it not possible for the HTML templates either? In the documentation I saw support for loops with HTML elements.

Founder
Posted: Oct 22, 2024

You're right, I was talking about the drag and drop editor only. The HTML editor can already do loops. Thanks for asking me to clarify.

Related questions
View product details