Answers / PDF Forms
Not sure if that made sense ...What I'm wanting to do is create a form (done the initial form already) that has a button that instead of just saving the form as a PDF (like it currently does), it will instead just append the data that has been entered as another page either in that PDF or an existing PDF.Currently we're using a single form as a fact cover sheet where we compile data for 50+ items. And then we go back in and combine them into a single pdf. Which is not that bad, I guess, but I'd rather not do 50+ saves if I can set a button to just keep adding records to the same file.Hopefully that makes sense.
Jeremy Brown 825 days ago
I haven't seen any examples of using this anywhere except for the article and sample download we have at www.pdfscripting.com, and that requires a membership fee for access. You may want to do a Google search to see if there are any tutorials/articles/samples somewhere on the web.
Hope this helps,
After skipping around on the internet a bit, I figured out that was the way to go.
I've attempted this, but it still doesn't work.
Obviously you work for a company that provides this for a fee-based solution, but if you have a moment and would consider looking at what I've done, I'd appreciate it.
In my document I selected Document Processing from the Tools menu.
There I selected Page Templates.
I chose "Add" and it asked if I wanted to add that pages content in a template (or something like that)
And I answered "yes" and named it "NextPage"
Then I clicked "Add"
In the open text box I typed the following which I found elsewhere on the net:
var a = this.getTemplate("NextPage");
I closed the editing of the form and saved and closed the document. I opened it back up, verified the template was still in place, button and code still there ...
but nothing. Nothing happens. No "next page", no error. Absolutely nothing.
Jeremy Brown Commented 825 days ago | Report
There's no property called "this.pageNums"... It's either "numPages" or "pageNum".
Gilad D (try67) Commented 825 days ago | Report
Errors are reported in the Console Window. Did you look there for errors after running the code? The steps you did and your code looks fine. Why are you using this.numPages? The Template is automatically added to the end of the PDF.
Try the next version ofAcrobat
Get started with the next version of Acrobat.
Learn what's new >
Last 30 Days