How can to password protect a pdf file using vba?

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics or PDF-XChange Viewer SDK if appropriate.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
RobFarley
User
Posts: 1
Joined: Fri Jun 19, 2015 9:48 pm

How can to password protect a pdf file using vba?

Post by RobFarley »

Can someone give me a simple example of how to password protect an existing *.pdf file using vba (libraries ver 4)?
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

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

Post 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
Post Reply