Question Details

avatar
Welcome to the Acrobat Answers site. You're on your way! It won't take you many more points to reach the next level: Participant. And as you accumulate more points, you're also building your reputation with the community and with AcrobatUsers.com.

Button to Add Form as Additional Page to PDF

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 420 days ago


2 Answers

avatar
<p>Congratulations! The Acrobat User Community selection team has approved your status as Expert in the Acrobat User Community. We appreciate all your past contributions and hope you will continue to support the community by answering questions and participating in the Acrobat Answers Q&A program as you've done in the past.</p>

<p>As an expert, you will get a badge to display on your profile with the level EXPERT next to your name and you have become eligible to be nominated to the Adobe Community Professional Program.</p>

<p>After reviewing the Adobe Community Professional Program information at https://www.adobe.com/communities/professionals/, please let us know if you are interested.</p>

<p>Someone from the selection team will contact you soon regarding the community professional program. Keep up the good work!</p>

<p>Regards,</p>

<p>The Acrobat User Community Team</p>


<p>**** Disclosure Requirements for Endorsements Received by Third Parties  ****</p>

<p>If you endorse or refer people to the Acrobat User Community in any venue,  it is our responsibility to ensure that you are aware of required compliance with the <a href="http://ftc.gov/os/2009/10/091005revisedendorsementguides.pdf">FTC’s Guidelines</a>. Both you and Adobe can be held liable under federal law for making unsubstantiated claims and for not disclosing your relationship with Adobe. In particular:</p>

<ol>
<li>Always disclose if you have received any type of incentive – free products, promotional items, travel, gifts, payment, and so on from Adobe. The disclosure must be on the same page as the endorsement.</li>
<li>Be truthful. Endorsements should not be misleading. Never make unsubstantiated or exaggerated claims about the benefits of Adobe products or programs. Any statements or endorsements about an Adobe product must be based on upon your actual experience.</li>
</ol>

Thank you again for your support of Adobe and the Acrobat User Community</p>

Hi Jeremy,

If I understand correctly what you want to do, then you might look into using the Page Template Spawning function. Any page in a PDF can be turned into a Template. The Template may contain any kind of regular PDF content or element. The process of creating a new page from the Template is called "spawning". When a Template is spawned, every element on that Template is copied onto a new page. Spawning is done with a script, and only with a script. There are no built-in PDF or Acrobat features for spawning Templates, so you need to get the Acrobat JavaScript Reference and look up the Template object.

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,

Dimitri

WindJack Solutions

www.pdfscripting.com

www.windjack.com


Dimitri Munkirs answered 420 days ago  |   Comments (2)  |  New Comment

avatar
Welcome to the Acrobat Answers site. You're on your way! It won't take you many more points to reach the next level: Participant. And as you accumulate more points, you're also building your reputation with the community and with AcrobatUsers.com.


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"



I then added a button called Add Next Page, and under the Action tab I have the Mouse Up trigger selected and "Run a JavaScript" action.



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");
a.spawn (this.pageNums);



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 420 days ago  |   Report


avatar
<p>Congratulations! The Acrobat User Community selection team has approved your status as Expert in the Acrobat User Community. We appreciate all your past contributions and hope you will continue to support the community by answering questions and participating in the Acrobat Answers Q&A program as you've done in the past.</p>

<p>As an expert, you will get a badge to display on your profile with the level EXPERT next to your name and you have become eligible to be nominated to the Adobe Community Professional Program.</p>

<p>After reviewing the Adobe Community Professional Program information at https://www.adobe.com/communities/professionals/, please let us know if you are interested.</p>

<p>Someone from the selection team will contact you soon regarding the community professional program. Keep up the good work!</p>

<p>Regards,</p>

<p>The Acrobat User Community Team</p>


<p>**** Disclosure Requirements for Endorsements Received by Third Parties  ****</p>

<p>If you endorse or refer people to the Acrobat User Community in any venue,  it is our responsibility to ensure that you are aware of required compliance with the <a href="http://ftc.gov/os/2009/10/091005revisedendorsementguides.pdf">FTC’s Guidelines</a>. Both you and Adobe can be held liable under federal law for making unsubstantiated claims and for not disclosing your relationship with Adobe. In particular:</p>

<ol>
<li>Always disclose if you have received any type of incentive – free products, promotional items, travel, gifts, payment, and so on from Adobe. The disclosure must be on the same page as the endorsement.</li>
<li>Be truthful. Endorsements should not be misleading. Never make unsubstantiated or exaggerated claims about the benefits of Adobe products or programs. Any statements or endorsements about an Adobe product must be based on upon your actual experience.</li>
</ol>

Thank you again for your support of Adobe and the Acrobat User Community</p>

There's no property called "this.pageNums"... It's either "numPages" or "pageNum".

Gilad D (try67) Commented 419 days ago  |   Report


avatar

  |   Report
Was this answer helpful?  
0
0

avatar
<p>Congratulations! The Acrobat User Community selection team has approved your status as Expert in the Acrobat User Community. We appreciate all your past contributions and hope you will continue to support the community by answering questions and participating in the Acrobat Answers Q&A program as you've done in the past.</p>

<p>As an expert, you will get a badge to display on your profile with the level EXPERT next to your name and you have become eligible to be nominated to the Adobe Community Professional Program.</p>

<p>After reviewing the Adobe Community Professional Program information at https://www.adobe.com/communities/professionals/, please let us know if you are interested.</p>

<p>Someone from the selection team will contact you soon regarding the community professional program. Keep up the good work!</p>

<p>Regards,</p>

<p>The Acrobat User Community Team</p>


<p>**** Disclosure Requirements for Endorsements Received by Third Parties  ****</p>

<p>If you endorse or refer people to the Acrobat User Community in any venue,  it is our responsibility to ensure that you are aware of required compliance with the <a href="http://ftc.gov/os/2009/10/091005revisedendorsementguides.pdf">FTC’s Guidelines</a>. Both you and Adobe can be held liable under federal law for making unsubstantiated claims and for not disclosing your relationship with Adobe. In particular:</p>

<ol>
<li>Always disclose if you have received any type of incentive – free products, promotional items, travel, gifts, payment, and so on from Adobe. The disclosure must be on the same page as the endorsement.</li>
<li>Be truthful. Endorsements should not be misleading. Never make unsubstantiated or exaggerated claims about the benefits of Adobe products or programs. Any statements or endorsements about an Adobe product must be based on upon your actual experience.</li>
</ol>

Thank you again for your support of Adobe and the Acrobat User Community</p>

Hi Jeremy,

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.

Hope this helps,

Dimitri

WindJack Solutions

www.pdfscripting.com

www.windjack.com


Dimitri Munkirs answered 420 days ago  |   Comments (0)  |  New Comment

avatar

  |   Report
Was this answer helpful?  
0
0


Download
Acrobat XI trial

Get the trial now


Other Questions Needing Answers