I have a dynamic form that goes through a workflow. When the workflow is done and the form is complete, I need the final user to "finalize" it by printing it to PDF so that the dynamic properties are removed. We store these PDFs in a system that can't work with dynamic PDFs.
When I place a print button, clicking the button does bring up a print dialog box. However, when I choose "Adobe PDF" as my printer, it says "Access denied." When I try to print that version by clicking File/Print/Adobe PDF it will print a static PDF.
When I have a version of the form without a print button, I can also click File/Print/Adobe PDF to print a static PDF.
Is there a way to program a button to allow users to click, get a print dialog box, and print to PDF?
I would prefer a button that gets the user to the point of choosing Adobe PDF as the printer over displaying a message box to users telling them how to print to PDF using File/Print/Adobe PDF, but that's the only workaround I can think of.
Weird, the script is just the default script of the print button ans should work.
Did you test if the error also occurs of another users computer? It's possibly just a local problem.
You also can try a custom script like
var pp = event.target.getPrintParams();
pp.printerName = "Adobe PDF";