Skip to main content
Participating Frequently
February 13, 2025
Question

Spawn Additional Text Page in Fillable PDF

  • February 13, 2025
  • 3 replies
  • 1702 views

Hello, I'm curious as to if there is a JavaScript to just generate an additional text box or blank page with one text box and signature of writer to verify their writings. Would this be from a template that I would spawn?

 

Also, what is a good JavaScript to use for this to have a button at the end of the page to add additional text for the page. I haven't been able to find any working JavaScript or help for this task.

3 replies

try67
Community Expert
Community Expert
February 13, 2025

Yes, you can spawn pages using a script. The fields should already be located on the Template page before you spawn it, though. Adding them after the page is created is not a good idea.

Participating Frequently
February 14, 2025

I'm making a template with the fill fields. For some reason all the scripts I try on the community help wont work. Is there a specific mouse click that I'm not using. I'm trying to load a "Template1" at the end of each page as an option for additional text. For some reason none of the scripts though I've found have worked out. Do you happen to know a productive one?

 

PDF Automation Station
Community Expert
Community Expert
February 14, 2025

I linked to the JavaScript reference for spawning templates in a previous comment.  It would be helpful if you provided the script you are using that doesn't work.

PDF Automation Station
Community Expert
Community Expert
February 13, 2025
Participating Frequently
February 13, 2025

Additionally to have a button on the spawned pages to delete the page. If by accident a user made a page and they didn't need or want it.

try67
Community Expert
Community Expert
February 13, 2025

To delete the current page when a button is clicked using this code as its Mouse Up event:

this.deletePages(this.pageNum, this.pageNum);

Note this will only work on spawned pages if used in Reader.