Quantcast
Channel: Adobe Community : Popular Discussions - Printing & Prepress
Viewing all articles
Browse latest Browse all 6566

How to print password protected PDF files to a new PDF using Visual Basic for Applications

$
0
0

I have a series of PDF files that are password protected. I have a login ID and password that allows me to view the documents once I've logged in, but my co-workers that don't have login credentials cannot view the documents. What I'm doing in order to make the documents viewable for others is a manual process that I'm looking to automate using Microsoft Access 2003 VBA. Here's the manual process:

1.) I set my default printer to be the "Adobe PDF" printer.

2.) I open Windows Explorer and navigate to the folder that contains the password-protected PDF files, selecting all of them.

3.) I right-click on the selected group of files and choose "Print" from the context sensitive menu that appears.

4.) I provide my ID and password in order to access the password-protected files - I only have to do this once.

5.) In the "Save PDF File As" dialog box that appears, I choose where I want to save the first file and the applicable file name and click "OK".

6.) I repeat Step 5 until all of the PDF files have been printed as "new" PDF files with new names that are no longer password protected.

 

I know how, using Microsoft Access 2003 VBA, to navigate to a particular folder on a network drive and loop through each file within the folder. What I don't know how to do is to print each individual PDF file using the Adobe PDF printer so that it's printed as a new PDF file that's no longer password protected.


Viewing all articles
Browse latest Browse all 6566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>