I have a 17 page fillable pdf form, once completed i want pages, 1,3,11,15-16 to print as an image? i am new to scripting, how would i code this using a print button. your help will be greatly appreciated. many THANKS
xfa.host.print(0, "14", "15", 0, 0, 1, 0,0); - prints pages 15 and 16
If you haven't read the post that Niall references, I would still suggest you read it. It explains the print method script and explains how to open a print dialog box for the user. If you don't know ahead of time which pages the user will need to print, this would be a good option.
The post that Niall put up earlier contains a link to a post that explains which parameter to change to force a dialog box to pop up for the user. Once you find it, you just need to alter the script I posted for you.
I added a print button then added the script as you instructed, which prints directly to my printer and does not show me a print dialog box, to choose which printer to send to? Do I need to add another line of script to show the dialog box? thank you
The only way I know of to print to Adobe PDF would be to have the user select the Adobe PDF printer from a print dialog box. The script I posted should print the form as an image, I don't believe the security built in to Adobe docs would allow you to select which printer is being used. You could write a startup script to set the default pc printer to the Adobe PDF printer for users within your company, but anyone on a pc you don't control would have to select it themselves.
I added the script as you instructions indicated and it worked, if you don’t mind, can you help with one more thing? We are making efforts to go paperless and I really need to print these pages into an adobe pdf file. How would I code this into the print button? Thank you so much!