Page 1 of 1

How can to password protect a pdf file using vba?

Posted: Wed Feb 15, 2017 8:43 pm
by RobFarley
Can someone give me a simple example of how to password protect an existing *.pdf file using vba (libraries ver 4)?

Re: How can to password protect a pdf file using vba?

Posted: Mon Feb 20, 2017 10:55 am
by Tracker Supp-Stefan
Hello Rob,

Welcome to our forums.
You can find the method needed to put protection on an existing document here:
https://help.pdf-xchange.com/DEV/de ... securityex
And there is a snippet of sample code how to use this.
I am not sure of the exact syntax to use through VBA though.

Regards,
Stefan