Avoid Info messages from Acrobat when open broken PDF document

I'm using Adobe SDK to check and fix a bunch of PDF files
Dim avDoc As AcroAVDoc = Nothing
    Dim pdDoc As CAcroPDDoc = Nothing
    Try
        avDoc = New AcroAVDoc()
        If (avDoc.Open(sourceFile.FullName, String.Empty)) Then
            pdDoc = avDoc.GetPDDoc()
            RemoveIfExists(destinationFile)
            CreateIfNotExits(New DirectoryInfo(destinationFile.DirectoryName))
            pdDoc.Save(3, destinationFile.FullName)
            pdDoc.Close()
            avDoc.Close(1)
            Return True
        End If
        Return False
    Catch generatedExceptionName As Exception
        Me.logger.Error(String.Format("Error while converting {0} to {1}. The error message: {2}", sourceFile.FullName, destinationFile.FullName, generatedExceptionName.Message))
        Me.logger.Fatal(generatedExceptionName.StackTrace)
        Return False
    Finally
        If (avDoc IsNot Nothing) Then
            avDoc.Close(1)
        End If
        If (pdDoc IsNot Nothing) Then
            pdDoc.Close()
        End If
    End Try
But when I try to open PDF that can't be opened for some reason the info message appeares
How to avoid this?

Open the document first as a PDDoc, then convert to an AVDoc. Use an error
handler to catch the error that gets thrown by the Open call when the file
cannot be opened.
pdDoc.Open("c:\test\dummy.pdf")
pdDoc.OpenAVDoc ("")
Karl Heinz Kremer
PDF Acrobatics Without a Net
PDF Software Development, Training and More...
[email protected]
http://www.khkonsulting.com

Similar Messages

  • When opening a pdf document in Adobe Reader the font of the original document is changed....It becomes a mix of the original font and a new different font. How can i fix this

    When opening a pdf document in Adobe Reader the font of the original document is changed....It becomes a mix of the original font and a new different font. How can i fix this

    This issue occurs with most of the PDFs that I open up. I am using the latest version of adobe reader on my windows based machine and it is a general PDF. I saw a similar post online stating that if you look at the fonts used in the document and it doesn't say (Embedded) next to it, then Adobe Reader will try to pull the font(s) from your computer and if it doesn't find that font then it will replace it which makes it look funny.

  • I received a pop up regarding security certificates when opening a PDF document today.  Is it safe to say "yes" to the installation of the security updates?

    I received a pop up regarding security certificates when opening a PDF document today.  Is it safe to say "yes" to the installation of the security updates?

    If you opened it with Adobe Reader, then yes: "Yes" is safe (I just did the same thing one minute ago).

  • When I try to open Adobe Acrobat XI Pro it just freezes, it also freezes when opening a PDF document. What can be done to resolve this or troubleshoot this?

    Adobe Acrobat Pro XI is having some issues. When just the base program opens it freezes before I can even do anything with preferences. The same thing happens when I open a PDF document from anywhere. I have cleared the %temp% directory and repair installed the program with no success in finding a resolution to this issue. I have removed Adobe AIR as a thread indicated that this program could be the cause of some issues. I even restarted the print spooler as that was mentioned in a different post on Adobe Support Forums.

    I would suggest rebooting (particularly if you have not) and log in as the administrator. Also, it sounds like you can open Acrobat, but then it locks up when you try to do the preferences. So in that case go to Help>Repair and apply that. Then repeat the process with Help>Updates to get current. See if that resolves the issues. Since you mentioned %temp%, I assume you are on a windows machine, but which one?

  • Error message from web - when opening pdf files

    Hi,
    I receive the following error message a lot when I try to open an educational pdf file from the web.  What do I need to do to 1. see, 2. print and 3. save these type of educational pdf files from the web?  I am using a MacBookPro OS X.
    Thanks for your help and sorry I could not find an answer on the forum. 
    Example:  I try to import or download MIT18_06SCF11_Ses3.5sum 2.pdf onto my desktop - which seems successful.  However when I try to open this file, I get the following error message.:
    "Adobe Reader could not open 'MIT18_06SCF11_Ses3.5sum 2.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."

    Yes i tried following your list of commands and got the same error from MyMathLab by Pearson Publishing or the other link.  I'm beginning to wonder if they are protected. 
    As you probably guess - I am not computer savvy.  I will take my laptop to school tomorrow and ask another student. 
    Thanks for your followup.

  • Adobe Acrobat Standard/Pro freezing when opening large PDF documents

    Ok, I have a tough one. Adobe Acrobat X Standard/Pro keeps freezing when opening large documents that exceed approx. 50 pages. These PDF documents contain large images and graphs for mining purposes, but no links. The issue impacts multiple users on multiple laptops/desktops. We have tried the following:
    - Uninstalling/re-installing Adobe Acrobat
    - Disabling Enhanced Security in Acrobat Preferences
    - Resetting local user profiles
    - Changing Reading Preferences to view current visible pages only
    - Installing Adobe Acrobat XI
    This issue has only occurred after upgrading users to a Windows 7 Enterprise 64bit Operating System.
    The only possible solution I have managed to find is changing a registry key that permanently disables the Enhanced Security options in Acrobat. This solution however, only worked on brand new user profiles. Resetting user profiles throughout our entire company is not something we are even going to consider.
    If anyone would like more information that I have missed, please feel free to ask.

    Another possibility to check is the free space in the TEMP folder. I believe Acrobat uses the TEMP folder for temporary storage. You might even consider increasing the size of the TEMP folder. At least this is something else to check.

  • Getting Adobe Lifecycle Error when opening the pdf document to provide comments

    Hi All,
    I am getting AdobeLifeCycle Error message when I am trying to give comments in the pdf document.
    I have a workaround in place for the same but I want a permanent fix.
    PFB the workaround for the same:
    1.Delete the Adobe folder from the users local profile, under the following folders:
    C:\Users\”login”\AppData\local
    C:\Users\”login”\AppData\locallow
    C:\Users\”login”\AppData\Roaming
    2.Delete the contents of the temp file on the C Drive
    Please let me know if some one has faced this issue and have been successful in finding a permanent fix.
    Thanks & Regards,
    Aniket Deshmukh

    PFB the error message:
    Adobe LiveCycle Review Connector - File Not Found’

  • "Internal Error" Message from Windows when opening Reader 9 files

    When I attempt to open an Acrobat file using Reader 9.0 I get a window with a message "Windows has detected an internal eror.Adobe 9.0 has quit." I am using Vista ( which I happen to detest). There is no error number. What can I do?

    yes I do but the error message does not ask me for admin permission. All it says is what I quoted above in #2. I have since even attempted to uninstall Reader 9 and guess what? It will not allow it to continue, error message 1606. Could not access network location. %APPDATA%\ - whatever the heck that means. Again, it would appear logical that the term "access" would indicate admin pemission required. It (windows) did ask me and I did say continue, but it then did not do anything, just keeps returning the above message. These Catch 22 situations with computers seem to congolmerate on my own computer. Directs me around in circles with no results possible.

  • How do I stop my Reader version 11.0.1 from crashing when opening any PDF file?

    I've had this problem since yesterday and it started very suddenly but now I cannot view any of my files because the reader crashes after a few seconds. I cannot use the app at all, please help!
    The files I'm trying to view on my reader are not new, meaning that they used to work just fine without causing the reader to crash. So I don't think that is the problem.
    I've also already checked that I have plenty of space on my iPad so the problem shouldn't be related to memory either.
    The next step, I guess, would be to remove and reinstall the app but then I'll lose all my neatly organized files.
    The reader is version 11.0.1 and my iOS is version 7.0.4.
    I'd appreciate any help I can get because this app is what I mainly use my iPad for and, as I said, now it's not working at all.

    Try resetting your iPad: Hold down the Home and Sleep/Wake buttons at the same time. Keep holding them down until you see the Apple logo, then let go. Reopen Reader.

  • Separate Instance of acrobat on opening a pdf document

    hi guys,
    is there any option in sdk to set a separate instance of acrobat ?
    the reason for that, is I got a global variable for using or not my plugin , but when i reopen another "acrobat.exe" document (outside my acrobat instance), the new instance share my global variable
    I tried "acrobat.exe /n" from cmd! it's work fine, but i don't want users get involved in that command !!!
    : VC++, SDK 8

    You may just want to make your plug-in behave in a way that allows
    document specific processing, rather than processing all documents
    unconditionally.
    To have a "per document" on/off switch you could keep a list of AVDoc
    or PDDocs together with a switch for each one.
    Aandi Inston

  • How to open a pdf document with bookmark from forms6i

    Hi. I'd like to open a pdf file from forms6i but positioning at a specified bookmark. I've tried the following line of code, but it jus opens the document at the start of it:
    host ('c:\sqlfigo.pdf #EMPRESAS',no_screen);
    also tried:
    host ('c:\sqlfigo.pdf EMPRESAS',no_screen);
    How do i open the document a navigate to a specified bookmark.
    Help will be greatly appreciated ...!

    Hello,
    The parameters that can be used in the URL when opening a PDF document are
    described in the document :
    Open Parameters for PDF
    http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf
    Regards

  • Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    Sometimes (but not always), when I try to open a pdf document from the US bankruptcy court website, I get a window asking if I want to use Adobe Acrobat. After I click "yes", I get a bland screen.
    == URL of affected sites
    ==
    http://
    == Troubleshooting information
    ==
    Firefox Version
    3.6.3
    Extensions
    Name
    Version
    Enabled
    ID
    Skype extension for Firefox 2.2.0.70 false
    Java Console 6.0.01 false
    Java Console 6.0.02 true
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows 7
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Office Plugin for Netscape Navigator
    *Download and Print Plug-in DLL
    *Default Plug-in
    *Shockwave Flash 10.0 r45
    *Adobe PDF Plug-In For Firefox and Netscape

    Hi.
    Does this only open on that specific site?
    In any case, you may want to:
    - instruct Firefox to handle PDF files in a specific way by going into Tools > Options > Applications and selecting the option you want for the PDF files
    - reinstall Adobe Reader and its Firefox plugin
    - install another reader instead of Adobe Reader. I recommend Foxit Reader ( http://www.foxitsoftware.com/pdf/reader/ ), since it's free, VERY light, VERY fast, safe and also has a Firefox plugin (make sure you don't have both Adobe Reader plugin and Foxit Reader plugin enabled/installed at the same time in Firefox)

  • When opening a pdf link the process stalls and there is a message that Adobe acrobat reader is running. to the best of my knowledge I do not have the reader. I have an older version of Acrobat Pro. How can I fix this?

    when opening a pdf link on a web poage the process stalls and there is a message that Adobe acrobat reader is running. To the best of my knowledge I do not have the Acrobat reader. To the best of my knowledge I have deleted the reader program. I have an older version of Acrobat Pro. The problem occurred before I did the deletion and continues since then.

    Assuming that you are using IE10 / IE11 on Windows: http://support.microsoft.com/kb/2716529

  • How to I stop the Preview Pane in Windows 7 retaining control when I open a PDF document using Adobe Acrobat (Reader is NOT installed)

    I have the preview pane active when selecting PDF Documents.  When I open a PDF document I am unable to save any changes. the error message I receive:
    "The documents could not be saved. The file ma be read-only,or another user may have it open. Please save the document with a different name of in a different folder"
    The document is not read only and no other user has it open.  If I turn the preview pane OFF there is no problem saving changes.  I have also un-installed Adobe Reader.
    Other programs (such as Excel, Word) do not experience the same problems as the PDF documents.
    Does anyone have a solution?

    Hi snoreaustralia,
    It sounds like you just need to associate the PDF filename extension with Acrobat, rather than Preview. Please see this document from the Microsoft Help for instructions on choosing the default program for opening a particular file type (in your case, PDF): Change which programs Windows uses by default - Windows Help
    Best,
    Sara

  • Error message about forms when ID exported PDF is opened in Reader

    I'm using ID CS2.
    Has anyone successfully made navigation buttons on an exported PDF that doesn't produce an error message about forms when opened in Adobe Reader?
    There's an Adobe page about this that says it's caused by having a stroke too near a link field, but I can't seem to avoid the message if I place more than one button anywhere on a page. I've spent a lot of time playing with this and can't seem to find a workaround.
    Am I a sucker? Is anyone else trying to use this function other than me? It seemed like the perfect solution to this project I produced and now whenever a user opens the PDF they are greeted with a confusing message that has absolutely nothing to do with the functionality of the document.

    Well, everything in those PDFs were form fields. You can make form fields in Acrobat - and then you can right-click on 'em and change their appearance, whether or not they'll accept rich text input, whether or not they'll scroll, and so on. It could also be done in LiveCycle Designer, for what it's worth. I wrote a now-obsolete post about this in response to yours before Mike showed up with this video.
    Probably most of your work on your designs in InDesign would need to be trashed; you'd need to rebuild the whole thing in Acrobat or LiveCycle. I have to say that, unless your targeted documents are extremely simple, that this is one of the worst document translation workflows I've ever seen in the last fifteen years. It might work - I'm trying to keep an open mind, here - but if you have any non-Latin-script languages in your target list, or if print reproduction is what you're after, or if you're expecting tracking revisions to the translations to be anything but a nightmare, I would suggest that you test this method inside and out before progressing any further.

Maybe you are looking for

  • Issue with Intercompany billing- Third Party

    Hi Gurus,        I have a SD flow for intercompany billing the below is the problem with it:   Assume: X as customer and Y as vendor in with different company code but in same client 1) Let as X get PO(Purchase order) for  20 item from one person and

  • What is the max memory Firefox uses to display pages and how to increase it ?

    Hello everyone, I am using the latest build of Firefox x86 on Windows 8.1 and I want to know what is the maximum memory that firefox uses to display web pages ie. What is the maximum size that a page can be ?? Also how do I increase that limit ?? is

  • Using as display for mdp any developments?

    Hi, Anything new on getting my current model iMac to act as an external monitor for an older mbp with mini-display port?  I mean screen sharing does work, but it would be nice to do it the right way if possible.  Third party adapter nothing yet?  Tha

  • No Audio In QuickTime File After Tape Capture

    I have been using Premiere CS6 to capture some old tapes through a Matrox MXO2 unit.  The video and audio is playable through Premiere but isn't available in other applications, particularly Quicktime Player.  Quicktime shows that the format is 24 bi

  • Trying to remove connections and sessions

    I opened some sessionInfos which create a session in the database. When I remove those sessioninfos, I can see using Oracle DBA studio that the database sessions are hardly ever removed. How I can remove them by force. Thanks for your help