How to apply passwords to existing PDF files?

My MS-Access app creates about 1000 pdf files.  Each file is required to have a unique password and will be emailed as attachments via a VBA procedure in Outlook 2007.    Certificates are not feasible, despite my objections.  So I am looking at having to manually set the 'Open File' password for each file individually.  The files are created in an Access '97 VBA procedure (by sending the results of an Access Report to the Adobe PDF Printer).  Is there any way with VBA (either Access '97 or Outlook '07) to apply a unique security policy or otherwise set a unique 'Open File'  password for each of the files, either as they are being created and saved - or after the fact?
I can create an Action in PRO X and manually select all the files and set the passwords.  I can then encrypt and password-protect all the files at once - but they all get the same passwords - ok for 'Permissions', but not for 'Open'.  Can Action fileds be modified from VBA?  Or is there a way to creat an Action that can modify another Action?  For example, if there is an Action named "Apply Pswd" which will apply a predefined common set of passwords to all files selected, can there be an Action, named "Apply Unique Pswd" that will update the 'Open' password field in the "Apply Common Pswd" Action as well as the name of the individual file that is to have that password?  Sort of like passing parameters to a function.  i.e.:
"Apply Unique Pswd":
1. Get next .pdf file from directory.
2. Get next password (whether caluclated or read from a list).
3. Open the "Apply Common Pswd" Action.
4. Change the 'Open' password and the name of the file to select (the 'Permissions' password does not change).
5. Execute the "Apply Common Password" Action - which at this time is only affecting a single file.
6. Verify the 'Open' password (or bypass the verify step, if possible).
7. Loop through all files in the directory.
   or
3.   Don't use Actions - save the .pdf file in such a way that the common 'Permissions' password and the current 'Open' password are applied to the appropriate file.
3a. Goto 7.
I have also investigated Secure Envelopes in Outlook, but again, it appeas to be a manual procedure to apply unique passwords.
I would greatly appreciate any tips, suggestions, snippits, or ideas - or enlightenment that it is just not possible to create .pdf files with passwords in VBA nor to use VBA to set the passwords post-creation.

usna73tx  
I am looking for similar thing, I need to apply a password and permissions to thousands of PDF files & I do not want to open them all manually.
Did you ever find a solution?

Similar Messages

  • How to Embed fonts in existing PDF file

    HI,
    I want to know how to embed the fonts in an existing PDF file, i do have Acrobat.
    Thanks

    Post your question in the forum for Acrobat.

  • How do I password protect a pdf file - getting error messages?

    I'm trying to protect a pdf file (i.e. a tax return printed to PDF) with password to open and password to modify. However I'm getting an error message in a pop up window saying..."The file may be read-only, or another user may have it open. Please save document with a different name, or in a different folder." I'm using WIN 8.1. and I'm using Adobe Acrobat Pro XI (student / teacher version). This is a standalone PC so I can't imaging someone else is using this file. Also I've tried renaming and saving to a different folder (from the folder the original file is saved). I've also looked at properties of the PDF file and its not tagged as read only. Please advise if I'm missing something. Thanks for your help.

    Thanks for responding...I'm getting the same message that I got at first..."The file may be read-only, or another user may have it open. Please save document with a different name, or in a different folder."
    The next day I emailed the file to my work PC and encrypted it with no problems. I have WIN 7 and am using Acrobat 8.0 there. So the problem seems to be with my new PC here at home (i.e. WIN 8.1 and Acrobat XI). Frustrating. I'm betting its some obscure setting in WIN or Acrobat, that is way over my head. Please let me know if you have any ideas. Thanks again.
    Phil

  • How can I edit an existing pdf file? I just need to replace some text

    my boss wants me to amend a pdf document and I've been doing it wrong. The programs I have are illustrator, in design and photoshop hope you can help.
    thank you in advance.

    I have amended a pdf before sometime ago but totally forgotten what I did.
    But I do know it can be done
    The fact that you edited one PDF doesn't mean you can edit another. There are many possible PDF "recipes" which may or may not result in direct edit-ability.
    In your original post, you state you've "been doing it wrong."
    In post #2, you state "it didn't work."
    In post #4 you state "it doesn't allow me..."
    It would be a lot easier to advise you if we had more detail in terms of how you're going about your attempts to edit, and what actually happens when you try. For example:
         "I use the Type Tool and click/drag to select text, but it makes a new text box instead."
         "I can't select individual objects. It looks like everything is grouped in one big frame"
         "When I click on text, it gets elected like objects, with anchor points all around."

  • How do I delete some pages from an existing pdf file?

    I have an existing pdf file that is too large to send to some people. How can I delete some pages from this existing pdf file, and break it up into two files?

    Acrobat
    You can download a 30 day trial at that link.
    You may also be able to do it with CreatePDF, but I'm not sure.

  • How can I add a password to my PDF file ?

    I'd like to know How can I add a password to my PDF file ?
    Regards,

    Acrobat Help | Securing PDFs with passwords

  • How can i add or create Layers into existing PDF File

    How can i create or add new Layers into new or existing PDF file using DLE JAVA API (Datalogics API)

    sandyrock,
    The PDFL, as Adobe distributes it, only has a C/C++ interface.
    The JNI APIs are developed and supported by Datalogics, the company you licensed your copy of the PDFL from. Have you contacted them? Support for their API extensions to the PDFL should be included with your licensing fee and they have many tips and ready-made examples specific to their API extensions they could give you.

  • How do i add a photo to an existing pdf file?

    How do i add a photo to an existing pdf file?

    Hi,
    You can download Acrobat XI Pro trial version from www.adobe.com then insall it on your computer then do following:
    1. Open your PDF file in Acrobat
    2. Select "Tools" from right hand panel
    3. Select "Content Editing" tool menu
    4. Select "Add Image" menu
    5. Select a photo file
    6. Place it where you like in the PDF file
    Hisami

  • I'm trying to password protect a pdf file but I can see the bottom 1/3 of the window - how do I resize

    I'm trying to password protect a pdf file but I can see the bottom 1/3 of the window - how do I resize

    Do you know what the maximum resolution of your screen is?

  • How do I  create a pdf file that is only part of an existing pdf file??

    How do I  create a pdf file that is only part of an existing pdf file??

    Use Adobe Acrobat. ExportPDF does not do this, or claim to do this.

  • How to delete pages in a pdf file with mac OSX Mavericks?

    Indeed i don't have Pages options in my tools window... Is that normal for the mac version? Please it's urgent...

    Sorry, it was my fault. When I searched on the Internet, I was reading the Acrobat help pages, without knowing it, because in my research I wrote "how to delete pages in a pdf file with Adobe reader", i was just automatically redirected toward Acrobat help but i didn't notice.
    So no incorrect information exist in the Reader Help pages.

  • Saving Password for a pdf file in HP Client Security Manager

    Hello,
    I want to save the password for a pdf file in the Password Manager of the HP Client Security Manager Software but the symbol for the entry of the password is not appearing on the top right of the screen. If I use the registered fingerprint a dialog opens where the Client Security Manager asks which account it should use to login. But i can't add a password for the file. The login for websites is perfectly fine. 
    Do you have any idea how to fix that?
    Is there a way to manually enter password for files?
    Thanks in advance.

    Thanks for the information.
    Suggest you to try uninstall and re-install the latest version which is - 8.3.3.1762. The direct link is:
    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/psi/swdDetails/?sp4ts.oid=5405363&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3Didx%253D%257CswItem%253Dob_129972_1%257CswEnvOID%253D4060%257CitemLocale%253D%257CswLang%253D%257Cmode%253D%257Caction%253DdriverDocument&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken
    If this does not fix, then suggest you to log a call with technical support.
    Please do post any progress on this.

  • Printing an existing PDF file

    I have been looking around everywhere to find a solution to this problem but just can't find anything. I am generating PDFs using iText. Once I have the file created I simply want to print it, which is apparently impossible without buying a 3rd party library.
    Has anyone found a way to take an existing pdf file and send it to a specific printer.
    To make it very clear (as in most other threads people don't seem to understand what the asker is actually saying)
    I have a file (C:\a.pdf)
    My default printer is called "abc"
    I have a 2nd printer called "xyz"
    I want to print C:\a.pdf to printer "xyz".
    Currently I am printing via acrobat but it's crap. It refuses to close after printing which is the main problem and I don't want to look up the processes and kill it as this is nasty.
    Surely someone, somewhere, has found out a way to say "print this file" from java! I don't care if it is a lot of code. I don't mind using an external library. It must work on windows, linux and crapple macs otherwise I'd just use FoxIt instead of acrobat.
    I have experimented with MANY different methods. The one found here (http://juixe.com/techknow/index.php/2008/01/17/print-a-pdf-document-in-java/) seems to be the best, however, the first page in a PDF seems to print portrait regardless of whether or not it's portrait. All following pages are then landscape. It was almost an amazing solution! If anyone has any ideas on that it would be much appreciated

    Hi
    I found jpedal on my searches but it's not an option due to the cost. Seems expensive considering all I want to do it send an existing PDF to a printer :S I really don't understand how it's so difficult to be honest. PDFRenderer on the dev.java.net site looks really promising but has a few issues. It doesn't seem to be active any more though which is disappointing.
    I think I have solved the problems I was having with it. I will post here after I have done some testing to say exactly what I have done

  • Edit a existing pdf file

    Is it possible?? "I have an existing PDF file and I want to change every occurence of the word 'competitor' with the word 'myself' "

    Your qustion is very nice.Sometime we need to edit
    file whether it is non editable like your resume,it
    Do you mean "resumes submitted to the company". Why
    are you editing resumes submitted to you?Recruiters sometimes change resumes before submitting them to a company. [Those recruiters should be shot, especially if they do it without your prior approval.  You should know exactly what they are sending to the company.  If the recruiter has an issue or suggestion for your resume, the recruiter should tell you and have [b]you change it. They should not make changes that you haven't agreed to.]
    will be good if you make your resume in pdf format
    sothat nobody can write , but it will not static file
    you have to edit someday sometime for someone.Or do you mean the resume sitting in My Documents
    which will be converted from a Microsoft Word
    document to what ever the company I'm applying to
    wants then emailed off.If you can edit a PDF, so can the recruiter. Still PDF is harder for the recruiter to change than a Word document is. So, keep the Word document (or other editable source), change that as needed, and create a new PDF.
    I assume the OP doesn't have any editable source for this document--that he just has the PDF. He could always retype the whole thing if he can't use copy-and-paste or OCR or something to get editable text from the file.

  • How to extract text from a PDF file?

    Hello Suners,
    i need to know how to extract text from a pdf file?
    does anyone know what is the character encoding in pdf file, when i use an input stream to read the file it gives encrypted characters not the original text in the file.
    is there any procedures i should do while reading a pdf file,
    File f=new File("D:/File.pdf");
                   FileReader fr=new FileReader(f);
                   BufferedReader br=new BufferedReader(fr);
                   String s=br.readLine();any help will be deeply appreciated.

    jverd wrote:
    First, you set i once, and then loop without ever changing it. So your loop body will execute either 0 times or infinitely many times, writing the same byte every time. Actually, maybe it'll execute once and then throw an ArrayIndexOutOfBoundsException. That's basic java looping, and you're going to need a firm grip on that before you try to do anything as advanced as PDF reading. the case.oops you are absolutely right that was a silly mistake to forget that,
    Second, what do the docs for getPageContent say? Do they say that it simply gives you the text on the page as if the thing were a simple text doc? I'd be surprised if that's the case.getPageContent return array of bytes so the question will be:
    how to get text from this array? i was thinking of :
        private void jButton1_actionPerformed(ActionEvent e) {
            PdfReader read;
            StringBuffer buff=new StringBuffer();
            try {
                read = new PdfReader("d:/getjobid2727.pdf");
                read.getMetaData();
                byte[] data=read.getPageContent(1);
                int i=0;
                while(i>-1){ 
                    buff.append(data);
    i++;
    String str=buff.toString();
    FileOutputStream fos = new FileOutputStream("D:/test.txt");
    Writer out = new OutputStreamWriter(fos, "UTF8");
    out.write(str);
    out.close();
    read.close();
    } catch (Exception f) {
    f.printStackTrace();
    "D:/test.txt"  hasn't been created!! when i ran the program,
    is my steps right?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Issue while accessing deployed web-app on Weblogic 10.3.5

    We have deployed a web app on Weblogic server 10.3.5 as a WAR file. The deployment looks fine and application is in "Active" state. However when we try to access the application it fails to detect the Struts tags and gives following error - weblogic.

  • How to get the database size of several system

    Hi We've got a lot of database system on our landscape. I want to make a simple report to get the size the all our database on a weekly base. I try to get a RZ20 value on it without succes. Do you know a sql request that i could launch on all my data

  • Ar/ap process

    Hi, Any one can pls tell me in detail: 1.when we purchase /sell (ap/ar) something waht is the total process and which areas it wil reflect in fi & co I wil assign points thans jay

  • Web service scenario -- message stuck in receiver PI engine

    Hello expert I have scenario HTTP --> PI --> WS (ABAP backend). I have PI 7.1 and the backend is based on NW 7.0 I have configured the scenario in ID with receiver agreement of ws adapter. In the backend, I've generated the server proxy based on the

  • Enhancing Enterprise Service - Input Message Enhancement

    Hi I am using a standard Enterprise Service and have successfully Enhanced the Output Message (Created a Data Type Enhancement in PI), did the BADI Implementation and mapped the Outgoing Response in Outbound Processing of BADI Implementation and able