Script to "save as" certain pages or print as PDF in a form
Hello
I've created a 4 pages form with acrobat pro DC and this form has two different users.
The "first-level" user will fill some fields and after that (with many readonly fields enabled and some other hidden), that user will send the edited form to a "second-level" user. This second and last user only has to fill the page number 2 using Acrobat Reader.
Once he clicks on a "submit" button, we would like to generate a readonly pdf file with all the pages except the page number 2 (the page number 1 if counting zero-based)
As the extraction is not an option, I have tried to make a script using app.execMenuItem("SaveAs") and also tried printing as pdf but I have issues in both cases:
- Is there a way to use the "save as" method which saves all pages except page 2?
If so is possible to only flatten that copy? I want the original form as it was.
Is there a way to edit that new copy before generate it? I would like to hide some fields on that new copy.
- The second option I tried only works if the virtual pdf printer isis set as default, otherwhise will be printed with the OS default printer. It would be awesome if there was an option that detects the a virtual PDF printer of the computer.
Thanks
