Copy link to clipboard
Copied
I'm trying to accomplish a few things. Is this possible?
Current state: Multiple page PDF with tables and form fields in some cells. Table structure is the same across all tables (same number of columns, varying number of rows). All content has been structured appropriately in teh Tags pane.
What is desired:
I created "Templates" and made them invisible for a couple pages hoping that may be a way to maintain tags. If using "Templates" is a good approach (not a better/easier way to accomplish the above bullets), is there a way to indicate in the JS how to insert the data row content into the existing template table structure?
Thanks! Stretching the limits of PDFs, but is the only resource available to all recipents.
Copy link to clipboard
Copied
Page templates are the correct way to implement the addition of new pages. And it is in no way stretching the capabilities of PDF.
If all additional pages have the same format, then you only need one page template. It must be made invisible for the working document. Then "spawned" when needed.
Here's the Acrobat JavaScript reference entry for spawning.
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#spawn
You need to get the page spawning working first before we can help you with filling the fields with data.
You'll find plenty of posts on this forum explaining how to do this.
Copy link to clipboard
Copied
Thanks for your response. The other day, after I posted, I did successfully get a template to be spawned upon an action. Unfortunately, it seems tags do not carry/get created. I'll read the resource you provided and see if there's another way to spawn that does retain tags.