Skip to main content
Inspiring
February 21, 2018
Answered

Give script rights to adjust a secured document

  • February 21, 2018
  • 1 reply
  • 788 views

Hey Everyone,

I have a pdf form that's secured (with a password) from unwanted editing (or possibly some light protection against people stealing the forms' scripts etc.)

However, I'd like to have a script remove certain empty pages when printing the pdf.

I got the script working as desired however when the editing password isn't entered the script gets a 'no rights' error when it tries to remove the empty page as instructed.

My question is this:

Is there a way to certify this on-print script so that it can remove the empty pages?

Thank you in advance for any trouble to be taken.

This topic has been closed for replies.
Correct answer try67

Not possible. What you can do, though, is open the Print dialog and populate it with the desired page numbers, omitting the empty ones.

It's then up to the user to print it using those pages. They can change it if they want to, though.

1 reply

try67
try67Correct answer
Braniac
February 21, 2018

Not possible. What you can do, though, is open the Print dialog and populate it with the desired page numbers, omitting the empty ones.

It's then up to the user to print it using those pages. They can change it if they want to, though.

Inspiring
February 21, 2018

Hey there try,

Too bad, I guess the question will be what's more important to the users.

thank you for your swift response

Braniac
February 21, 2018

Remember too it can't work in the free Reader and won't work in most browsers.