Copy link to clipboard
Copied
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?
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
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
Never mind, I think I got it.
Copy link to clipboard
Copied
The code you've shown above "spawns" a single page from a page template named "addprojects". There is no relationship file name.
Pages are turned into named templates from the page template dialog, which in Acrobat DC can be found on the "Organize Pages" tools.