These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

PDF Form with export features

Lude
Registered: Jun 29 2010
Posts: 14
Answered

Hi All,

I have a PDF form currently in circulation within my business that is fairly advanced. It has multiple field types, extended user rights, email and print buttons that can only be used once all required fields are populated (controlled by scripting).

The form works well and the user can save a copy afterwards so they can keep for their records, print or email.

However the first 2 pages are really only form completion pages and do not need to be in the saved version.

Is there any way I can modify my script on the email and print buttons so that it extracts pages 3-14 as a new document that has full locked down security to prevent changes? (Hope this makes sense)

Many Thanks

Tom

My Product Information:
Acrobat Pro 9.0, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Is it being used with Acrobat or Reader? If the latter, the answer is no.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Lude
Registered: Jun 29 2010
Posts: 14
The form is being used by users with reader.

Is there any other way I could achieve the same results? The only way I can think of is by loading a form to a website that generates a pdf but typically this is used by offline users so not an option.

Thanks for your response.

Tom
try67
Expert
Registered: Oct 30 2008
Posts: 2398
In Reader it's not possible to extract pages to a new file. However, it is possible to delete pages, if the file has form rights enabled.
So maybe what you can do is create a button that deletes the pages you don't want, makes all of the fields read-only, so the user can't change them any more, and then submits it.
That's the closest solution I can think of to what you described.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Lude
Registered: Jun 29 2010
Posts: 14
That sounds like the best solution. I have form rights enabled so I just need to modify the script to delete the first 2 pages.

I force the user to digitally sign the document which locks the document as it is then sent to a customer and prevents any unauthorised changes being made to the document.

Thanks

Tom
try67
Expert
Registered: Oct 30 2008
Posts: 2398
This code will remove the first two pages of a file:

this.deletePages({nStart: 0, nEnd: 1});

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Lude
Registered: Jun 29 2010
Posts: 14
nice one. Saves me looking as I am only an amateur when it comes to scripting.

Many Thanks

Tom
Lude
Registered: Jun 29 2010
Posts: 14
just found out this did not work as I am using digital signatures to lock the document so a customer is unable to change details when the document is sent out to them.

I think i can use the script you mentioned in the digital signature box but need to write script to change field properties to read only for all except for three specific fields I want to remain unlocked.

I am gradually getting there I think.