Skip to main content
fogharty
Known Participant
December 13, 2022
Answered

Having trouble remembering how to create form template and spawning additional pages

  • December 13, 2022
  • 1 reply
  • 826 views

I have a form I created a few years ago where a user clicks on the last page, and it will spawn additional copies of that last page in case more information is required.

 

However, now they want that last page to be its own document, and for the life of me I can't remember how to save a pdf as a template. All the help forums say

1) Make form

2) Save as Template

3) Profit

It's how to actually "save" as a template that I'm getting hung up on. Can't find it in the Tools, Export, or Save As menus anywhere.

I think once I get past that, and figure out how to hide the template, I can redo the JavaScript for the spawing part.

var a = this.getTemplate("addprojects");
a.spawn({nPage: this.numPages, bRename: true, bOverlay: false});

Please can someone help?

This topic has been closed for replies.
Correct answer Thom Parker

The word "template" can be confusing because it can mean lots of different things. Posters often talk about using a whole PDF as a template.  But there is no concept of a whole PDF template in Acrobat. In the context of Acrobat and the PDF specification, only pages can be made into page templates. This is nothing to do with saving the PDF.

 

To make a document from the last page and maintain the page template action, save the PDF to a diffent name and then delete all the other pages. Do a SaveAs to clean it up, and your done.

 

 

1 reply

Thom Parker
Thom ParkerCorrect answer
Community Expert
December 13, 2022

The word "template" can be confusing because it can mean lots of different things. Posters often talk about using a whole PDF as a template.  But there is no concept of a whole PDF template in Acrobat. In the context of Acrobat and the PDF specification, only pages can be made into page templates. This is nothing to do with saving the PDF.

 

To make a document from the last page and maintain the page template action, save the PDF to a diffent name and then delete all the other pages. Do a SaveAs to clean it up, and your done.

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
fogharty
foghartyAuthor
Known Participant
December 13, 2022

I think I understand about the templates, but I'm having trouble making the JavaScript work.

Let's say my document is called "Disclosure Form" how should the JS go?

 

 

fogharty
foghartyAuthor
Known Participant
December 13, 2022

Never mind, I think I got it.