Acrobat 8.1 and C# - How can you detect password protected PDF files?

I am modifying our existing C# code that opens PDF files.  But when ever we hit a password protected file, we are prompted for a password.  This is an automated process, so if we detect a password protected file, we move the file to a manual processing folder to be processed later.
We are using Acrobat 8.1 Standard.
Our code looks like this:
using 
System;
using 
System.Collections.Generic;
using 
System.Linq;
using 
System.Text;
using 
Acrobat;
using 
System.IO;
using 
Word = Microsoft.Office.Interop.Word;
using 
System.Reflection;
     AcroApp app = new AcroApp();     app.Hide();
     try
          if (app != null)          {
               app.CloseAllDocs();
               AcroAVDoc av = new AcroAVDoc(); 
               if (av.Open(filename, "Test") == true)               {
                    AcroPDDoc doc = new AcroPDDoc();                    doc = (
AcroPDDoc)av.GetPDDoc(); 
                    doc.Save((
short)Acrobat.PDSaveFlags.PDSaveFull, 
                    Utilities.GeneratePath(FileVersion.TEMP) + fi.Name.RemoveFileExtension() + ".PDF");                    doc.Close();
     catch (Exception ex)     {
          ErrorLog.LogError(filename.RemoveFileExtension(), ex);     }
     finally
          app.CloseAllDocs();
          app.Exit();
This works great for non-password protected PDF files, but it prompts for a password if the file is password protected.  I was looking at the FileOpenEX functionality, but I can not find the reference to bring into my C# project.  It looks like it is only for C++, since I could only find C++ examples.
Any help would be appreciated.
Thanks,
Tom

There are no methods in the Acrobat SDK for C# for what you wish to accomplish.

Similar Messages

  • Can you print password protected pdfs from an ipad?

    can you print password protected pdfs from an ipad?

    This may help, but I do note that the printer you state is NOT on the airprint list. You may need to go to the app store and see if Canon has an app that will facilitate printing on a non AirPrint device.
    http://support.apple.com/kb/HT4356

  • How to split a password-protected PDF file?

    There is a tutorial to let you know how to split a password-protected pdf file, check in here:http://www.kvisoft.com/tutorials/split-a-password-protected-PDF-file.html

    Yup. You all are right. I ordered Adobe Acrobat today and the order is still processing. I can get to Adobe Acrobat.com but that too does not work. I guess I will have to wait until my order is processed before I get the keys to the kingdom. Thanks for your help and please forgive my ignorance.Regards,Bob

  • How can I print a protected pdf file if I know the password in Acrobat Reader 9?

    Hi,
    I have just received a password protected PDF file (Password isn't for opening the file, but to change security settings like copying, editing etc. only). I have the password for the file, but have no idea as to where I should enter this password in Adobe Acrobat Reader 9?
    Someone pls give me the steps to find the password field in Adobe Acrobat reader 9 to enter this password.
    Hope I don't need Adobe Acrobat 9.0 for this and reader would suffice?
    Thanks in advance.

    You can change the protection with Adobe Acrobat and the password. Not possible with only Adobe Reader.

  • How to convert a password protected pdf file?

    How do I convert a password protected pdf file to Word?

    Yup. You all are right. I ordered Adobe Acrobat today and the order is still processing. I can get to Adobe Acrobat.com but that too does not work. I guess I will have to wait until my order is processed before I get the keys to the kingdom. Thanks for your help and please forgive my ignorance.Regards,Bob

  • Can't open password protected PDF files.

    As per the thread title, I can't seem to open password protected PDF files via the Mail app.
    I've read that you can open them if they're synced and opened via iBook, however, this is not an option for me.
    I get sent several password protected PDF for work per week and would like to be able to read them directly from the Mail app just like a regular PDF file.
    Does Apple know of this issue and will they implement a fix in the near future?

    Get this:
    http://itunes.apple.com/us/app/pdf-expert-professional-pdf/id323133888?mt=8

  • How can you minimize all open pdf files at once in Acrobat 10?

    My company just switched us to Acrobat 10 from 6.  Now if I have a number of pdf files open I have to minimize each of them individually.  Before all you did was click the minimize button and the program just minimized to the taskbar.  How do you do that in Acrobat 10?  The Help link is of no use in the program.  Maybe this can't be done any longer.  If not, pretty stupid.

    Use the menu Window > Minimize All Windows

  • In C#, how can I detect an opened PDF file and save it into disk?

    he WebBrowse componente in C# opened an PDF file inside. The file came from the Internet. So, the Adobe Acrobat Reader was called and opened the file correctly. I want to save this file to disk. How can I do it?
    The WebBRowse component does not have access to the PDF content.

    PDFs are not designed to be editable. Your engineers can make comments using Adobe Reader without any extra steps provided they use the highlight and sticky note comments. If you want them to have access to the full range of comment markup you will need to use Acrobat to apply extended rights to the file.

  • How can you detect (from a script file) that javac found problems?

    The subject line says it all, but the background is:
    I have a script file (.bat, since am stuck on windoze for the moment) which is doing some compilation using javac.
    I would like to skip all subsequent activities in the script file after the call to javac if any file failed to compile.
    So, what can I use as a signal from javac that it found a problem?
    I initially tried detecting an exit code from javac that was non zero, but javac does not seem to emit such an exit coe when it objects to a file (it still returns with 0 as an exit code).
    The only remaining strategy that I can think of is to pipe javac's output to a file, and if there is any content in it then assume that it indicates an error and use that as a signal.
    This is suboptimal because it will give false signals for mere warnings, so if anyone has a better suggestion, please post

    You are right: it appears that javac does exit with an exit code of 1 if an error is detected in one of the files being compiled, at least on the windows jdk.
    To prove this, create an arbitrary java source file called HelloWorld.java, and create a msdos .bat file in the same directory that looks like
    @echo on
    javac  -Xlint:deprecation  HelloWorld.java
    :handleError
    @if not errorlevel 1 goto finalActions
    @echo ERROR DETECTED: compile.bat will TERMINATE PREMATURELY
    :finalActions
    @echo compile.bat now terminatedBy playing around with what you put in the source file (totally clean code, stuff that should compile but issue a warning, and garbage that should not compile) as well as with the exit code value detected by the .bat file, for instance trying
    @if not errorlevel 2 goto finalActions(see http://www.robvanderwoude.com/errorlevel.html if you need some documentation on error codes in dos bat files), I have determined the following as javac's behavior on windows:
    If code is pristine, exit code = 0.
    If code causes javac to emit a warning but is compilable, exit code = 0.
    If code cannot be compiled, exit code = 1.

  • How can i remove password from pdf file that i lost password to

    i have 2 pdf's that are atleast 6 months old i need to check information in i dont ever remember putting a password on them but i cant gain access to them...any ways i can remove these password?

    Adobe Reader can't remove passwords at all. Adobe Acrobat can, but only if you know what the password is.

  • How to open a password protected PDF file on the iPhone

    I've got a PDF file that is password protected and I transferred it to my iPhone using Air Sharing. When I go to open it, it asks for the password which I enter, but then it closes the program and doesn't open the PDF. Any ideas? Thanks

    Someone on another forum said you can with the app Goodreader Lite, but I haven't gotten to try it yet. I will let you know in about 45 minutes.
    P.S: Or this sounds even better - http://discussions.apple.com/thread.jspa?messageID=11780778&#11780778
    Message was edited by: compwiz1202

  • I am working with Acrobat  9 Extended Pro. How do you edit 3rd party pdf files?? Some do not allow.

    I've been attempting to modify a 3rd party, original form purchase agreement -- so I may complete it with answers and save in my system for future submital or more editing. The form I'm attempting to complete with my laptop .. turns blue (converts to photo storage?) and makes it impossible for me to edit.
    How do I edit under Acrobat 9 Extended Pro software  -- Please advise ASAP.
    Paul Johnson

    You could add form fields or comment annotations. If you want to modify the text directly you may need to OCR the pdf and convert it to a text or Word document, edit the text, then make a new PDF.

  • How to open a password-protected PDF file.

    Dear members:
    A while ago I created a document that I chose to protect with a password as I e-mailed it to a relative and didn't want the information to be openly available on the Internet. Its been about 4 years since I created this document and I now find I need to look at its contents but can't remember the password I used and neither can my relative-recipient.
    Is there a way to bypass the open-level password and open this document ? This is an important document and I really need to have it opened. What can I do ?
    Thank you in advance for your help.
    Best regards,
    Joseph

    Search Google for "PDF password remover".

  • How do I open password protected PDF files?

    I am taking online classes and cannot open the ebooks. Are there any suggestions on how to do this?

    DIvastella0212 which Adobe software or service is your inquiry in relation too?

  • Email attachments: whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    whenever someone sends me a file the Ipad labels it winmail.dat and wont allow me to open it...these are Word, Exce or jpgs.  Does anyone know why this is and how to fix it?  Also, how can you save attachments to a file on the IPad2

    Is this a particular sender, or all of your attchments?  Google winmail.dat and you will see a number of returns that can explain this, but in short, this is the way some e mail providers deal with attachments.  If all of your e mail is coming that way, you need to change a setting on your isp set up.  Perhaps stary here...
    http://www.nytimes.com/2010/11/25/technology/personaltech/25askk.html

Maybe you are looking for

  • Arrow keys on my wired keyboard don't work.  How do I fix these?

    The four (4) arrow keys on my wired keyboard don't work.  How do I fix these? Sorry, I came from a PC and am very new to the Mac. Thanks.

  • Can a script be written to improve the import process?

    Hello everyone - One of our managers would like to create topics by importing text from Word.  That is simple enough, but she would like to add a 'mapping' function to the import process that would create the topics in the appropriate folder. For exa

  • Import MS Access 2010 (*.accdb) to SQL Server Express 2014

    Hi, I have a SQL Server Express 2014 installed in my laptop and when I trying to import MS Access 2010 (.accdb) database using .net framework ODBC it still looking for a driver. Please help. Thanks!!

  • Best workflow to place multiple projects into one master project?

    Since FCP X seems to slow down with longer projects(this needs to be fixed soon) I am creating 4 15 minute projects for my  hour master. Should I copy and paste the shorter projects into the master or export them as self-contained QT files and re-imp

  • Need help installing Tiger 4.6!

    I have a powerbook G4 that runs OSX 2.8 currently, I'm trying to upgrade to Tiger, but whenever I restart to begin the installation, it boots up to a plain blue screen. I have more that enough space and specs, any reason why it wont boot up? Thanks