How to create a looping page of PDF

Formidable Forms
7 June, 2022 18:51:30
neutralchung
Topics: 1
Messages: 2
Hello, I am using Formidable Forms and I would like to use the repeater function in the form. I would like to create a PDF which can generate the page automatically but not manually.

i.e. The user can use repeater to input the data of the form. In the PDF, there is a table with 5 rows. If the user input 4 rows of data, of course, we just generate one pdf. However, if the user input 12 rows of data, how can I generate 3 same pdf with 12 rows of data automatically?

Thanks
8 June, 2022 00:46:25
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Can you please clarify - do you need 3 different PDFs or 3 additional pages inside that PDF?

If the question about pages there are 2 possible solutions:

1. With "Actions" and "Conditions":
1.1 You will need to create pre-mapped PDF pages with shortcodes as [101:1] / [101:2] / etc and maximum possible number of repeater fields and values.
1.2 Add "Action" to each page to "Hide" by default and show page if value from repeater not empty.

Screenshots: 1

2. With "HTML" object which can continue content to other "HTML" blocks:
2.1 You will need to create main "HTML" object with "HTML" code which will generate repeater data in loop. ("Disable WYSIWYG Editor" recommended to be checked).
2.2 You will need to create another pages with another "HTML" objects where "Parent" will be set to the main "HTML" Object ID and "Hide Page (if empty)" checkbox will be checked. It must be same settings on "HTML" objects on next pages. In this case if content will not fit in 1st "HTML" block it will be continued to next pages.

Screenshots: 2, 3, 4.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
8 June, 2022 07:49:45
neutralchung
Topics: 1
Messages: 2
Thanks for the reply.

I would like to have additional pages. It seems that the second way is much more suitable. However, I would like to ask that can I use a template pdf to generate the loop rather than using the html object? Since it is the government document, we must follow all the format of the document. The pdf template just like this
8 June, 2022 10:10:04
E2Pdf
Support
Topics: 7
Messages: 3163
You can use "Pre-Upload" but your original PDF must have additional pages created which will be hidden depending on solution you will use. E2Pdf can't clone or create additional pages automatically it can only "hide" existing pages.

So:

You can try to remove the table from "Original PDF" and use "HTML" object which can continue content to next pages if you need empty rows to be hidden or use "HTML" object over the existing "table" where you will fit the size of "table" rows and columns. "width" for "td" must be set in "percents" and "height" must be set in pixels in css section or directly in "foreach" loop. "Disable WYSIWYG Editor" must be checked.

If you do not need to hide empty rows you can use also 1st solution and just create and map needed fields + "Actions" to hide additional pages.

In both cases additional pages must be added to "Original" PDF and to E2Pdf Template. You can modify "Original PDF" by adding new pages and re-upload it with the icon on the panel.

P.S. We also recommend to update plugin to latest RC version by following steps in current topic: https://e2pdf.com/support/desk/how-to-update-plugin-to-rc-release-candidate-version-from-e2pdf-com

We remain at your service.
We would really appreciate your feedback at WordPress.org!