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

What to do if the user lacks the option to print as "Adobe PDF"?

miQlo
Registered: Jul 13 2010
Posts: 44

I have a button that saves my form using the "Adobe PDF" print option. I think you need distiller to use that option and I need my form to work in reader. I use fields that I don't want to show in print, and I also don't want the code to be in the new PDF so I can't use the "Save As" option.
Is there an alternative that works in reader?

//Get the printParams object of the default printer
var pf = this.getPrintParams();
var fv = pf.constants.flagValues;
//Set properties
pf.interactive = pf.constants.interactionLevel.silent;
pf.pageHandling = pf.constants.handling.none;
pf.flags |= (fv.suppressCenter | fv.suppressRotate | fv.setPageSize);
pf.printerName = "Adobe PDF";
this.print(pf);

try67
Expert
Registered: Oct 30 2008
Posts: 2398
If they have Reader then they can't create new PDF files. You will need to find a different solution.

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

miQlo
Registered: Jul 13 2010
Posts: 44
My project is going to fail because of this and my boss is not going to be pleased. Any suggestions on a solution?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can hide the fields. About the scripts I'm not sure. What kind of scripts are they?

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

miQlo
Registered: Jul 13 2010
Posts: 44
I have combo boxes that populates fields, combo boxes that toggles OCG visibility, buttons with miscellaneous functions, calculation fields, document level scripts and more. These can not be shown in print nor in the saved PDF. Unfortunately I'm not allowed to post the form on a forum so I can't show you.
How can I hide the fields? They are now using the properties "Visible but doesn't print".
try67
Expert
Registered: Oct 30 2008
Posts: 2398
In the script of the button that is supposed to save the file you can set them all to hidden.

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

miQlo
Registered: Jul 13 2010
Posts: 44
Yes but the user needs to interact with the buttons and combo boxes first, then when he saves they are supposed to disappear.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
I understood. When they first open the file the fields are visible, and when they click on the button to save you run a script to hide them.

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

miQlo
Registered: Jul 13 2010
Posts: 44
Aah ok, I didn't think about that. But I don't think that is going to be accepted at the office. I can't distribute that much of the document, everything is still there to tamper with.
My document is going to sales, they fill out the form and sends the new pdf to the customer.
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Fields can be removed only if the file has form rights enabled.

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