Detecting Corrupt PDF Files

I've got a large number of image+text multipage pdf files.  Some have corrupt images. I believe the compressed image data was truncated.
Reader X and Acrobat X both display "Insufficient data for an image" when I open a bad file and scroll to the page containing the bad image.
The same thing happens if I embed the Reader control in my C# app, or use AcroAVDocClass.OpenInWindowEx.
Is there any way I can detect this error from my C# code?
Is it possible to parse out and expand the image directly from the PDF file?  I've been able to do this with Accusoft/Pegasus' ImageGear, but would prefer to use something less expensive.
Thanks
Geoff

Hi irosenth
Thanks for the quick reply.
Yes, I've looked at preflight, but I can't get it to flag the file as having a problem.  I've tried a bunch of different properties, including "Errors in images" and "Image is not valid", but don't get any complaints.
It seems that once Acrobat has complained once about the image data, it ignores the errors afterwards.  I've seen Reader behave the same way on files with multiple bad pages.  Once one page is flagged as bad, the other bad ones just fail silently.
Any other suggestions?  My current thought is to display all pages using the Reader control, and then look for a child window with an error message.  That's pretty gross, though.
Thanks again
Geoff

Similar Messages

  • Detecting corrupt pdf's programatically

    Hello,
    Background: Have written/using a c++ plugin for Acrobat in Windows.
    I've encountered a couple of corrupt pdf files that cause a problem with my plug-in. I am unable to open these files manually in Acrobat or Foxit Reader (just to demonstrate it's not an Acrobat bug).
    I was wondering if there was a way to detect these files prior to opening a pdf using PDDocOpen() in my plug-in? I haven't come across anything in the SDK/API.
    I did figure out how to detect these corrupt files manually. I use the Recognize Text in multiple files->Select a folder option and it will indicate any problem files with a red X symbol.
    If there's a call in the API that can detect these files, let me know.
    Thanks.

    No, there is no way to detect them other than having PDDocOpen() throw an error or return NULL.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 28 Nov 2011 10:43:54 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Detecting corrupt pdf's programatically
    Detecting corrupt pdf's programatically
    created by zephed56<http://forums.adobe.com/people/zephed56> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4050665#4050665

  • Any way to repair corrupted pdf file?

    I created a pdf document on a my PC and it became corrupted with all these strange characters.
    Now when I open the document I get an error message that wasn't coming up before im hoping this msg will bring some light into the situation.
    If anyone can help me id be very thankful

    General Repair of Adobe Acrobat Reader corrupted .pdf file...
    1. Go to adobe official site, click the "Support" tab on the top of the screen, click on "Adobe Reader," and then select the "I can't open a PDF document" statement underneath "Troubleshooting." The Support tab is located near the top of the screen as a white word against a black backdrop. After clicking Support, you will see the phrase "Product Support Centers" on a new page in bold white font, under which is "Adobe Reader." The new page after clicking "Adobe Reader" will have the word "Troubleshooting" underneath the phrase "Adobe Reader and Help Support." Underneath "Troubleshooting" is "I can't open a PDF document."
    2. Follow the instructions on how to complete a general repair and installation of Adobe Acrobat Reader. To attempt the most basic PDF repair method, Open "Adobe Acrobat Reader" (select the program in your Start menu, which is on the bottom-left part of the screen), select "Help" from the gray tab menu at the top of Adobe Acrobat Reader, and click on "Repair Adobe Reader Installation." A meter should pop up indicating that your Adobe version is being checked for errors and is being linked back to the home Adobe official website just in case you need to download a new update of the program. If you need to download an updated version of the program, another pop-up will appear on your screen asking you if you want to update Adobe. Click "Yes."
    3. Reopen the PDF file. It should now be readable. If not, then try the next set of directions.
    4. If nothing helped, and you can't redowload .pdf file from source where it was, then use third party solution PDF On-line repair service https://onlinefilerepair.com/en/pdf-repair-online.html

  • Interactive Report Produces Corrupt PDF File

    Hello.
    I am using Apex 3.1.2 and have created an Interactive Report (IR). I then chose the "Download as PDF" option and chose the "Open" option. This caused an error about a corrupt PDF file.
    I then saved the file to my Windows drive and attempted to open it using Wordpad. I saw the following error as the very first line in the file:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I would much appreciate any suggestions as to what to do.
    Thank you.
    Elie

    No Christina,
    First I went under report attributes on Interactive reports under download
    Download formats:
    CSV and PDF
    I checked both. CSV format is fine. PDF format is corrupt.
    Next I then went in using the below:
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31rpt.htm
    It tells me I don't have a print server defined. I am trying to get the INLINE method to work.
    I see in the ADMIN there is a print server configuration section though it is not totally clear as I would think that you would get the default print configuration as you would with any other PDF docuement.

  • Officejet L7680, corrupt PDF file when scanning

    When scanning on my L7680, I have just started to have issues with a "General Error" message (on and off) and also a corrupt PDF file error.  What can I do to fix this? 
    HELP!!!!

    Hi 1193,
    Welcome to the HP Forums!
    I see that you cannot scan with your HP Officejet L7680, and I am happy to help you with this scanning issue!
    For further assistance, I will need to know the following:
    If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, Ethernet, or USB.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
    If the printer is able to make copies by itself.
    If you are using Windows, please try our HP Print and Scan Doctor, and let me know what happens!
    Hope to hear from you, and have a great day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Pdf image recovery from corrupt pdf files

         the pdf file in which i kept my pictures gt corrupt. i used image extractor tools but for nothing. please help me. i am clueless what to do?

    How silly was I as I had been using PDF files since the day I learned to operate the computer system and didn’t know anything about them. Then one day I realized that why don’t I learn something about PDF to become a mater in it.
    As we know in these days, PDF files are most commonly used by worldwide. Belong to any part of the society, we as an individual or an organization use PDF files. Therefore it has become very essential element in computer service.
                                      “Generally a PDF or Portable Document Format file is a self-contained cross-platform document which appears same as in the form of soft copy or hard copy. PDF files are used by all of us as they contain the complete formatting of the original document, including fonts and images, PDF files are highly compressed, allowing complex information to be downloaded efficiently.”
    PDF is very popular due to its easiest form of transferring the files over and through the internet as it maintains the original formatting and secures the documents so nicely that other files’ formats don’t.
    Any PDF file contains text or images and sometimes both i.e. text and images. It can be used for office presentation, school assignment or personal collection. But sometimes we don’t need the text part which is inside our PDF file. Occasionally, we need only the pictures from our PDF files. That time we usually do this: copy the images or pictures from the PDF files and then paste them in other new PDF file. That process of copy and paste takes a long time and makes us tired. So that time we need an application which can easily extract all the images and pictures from our PDF files in very short point of time.
    But just think about this: How can you extract images and pictures from a PDF file which is corrupted. Because there is not any software application which can extract the images and pictures from a corrupt PDF file. Did I say no?
    Actually there is a tool which can easily extract the images and pictures from not only a normal PDF file but also from a corrupt PDF file. With the help of this tool anyone can easily extract the images and pictures from a single or multiple PDF files of all versions such as 1.3/1.4/1.5/1.6/1.7, from Adobe Acrobat 3.x to Adobe Acrobat X either it is normal or corrupted as it is very simple to use.  After extracting the images and pictures, it allows you to save them in different formats such as JPEG, BMP, PNG and GIF. It is one of the fastest extracting tools which does extraction process in no more time.
    i used this tool as it was refered earlier in this thread, and i am totally satisfy from this tool : PDF Image Extractor from SysInfoTools. What a utility excellent work done by experts.
    http://www.sysinfotools.com/recovery/pdf-image-extractor.html

  • How to repair corrupted PDF-File  ?

    Hi there !
    I am having problems with a couple of PDF-files which got damaged due to a hard drive break down / file recovery action.
    Neither can i open them ("...not supported") nor have several attempts in repairing them (by using Pdf-repair software) been successful.
    Interesting point about it is, that in terms of file characteristics everything seems to be OK (file size, file type etc. are recognized by the computer).
    Does anyone have an idea what could be done to get my PDF's back to a readable status ?
    Thanks     timrelo
    Ps: In case you got an idea about how to fix a corrupted pdf-file, i am willing to send you one of my files.
          To do so, please send an email to    [email protected]    and i will email you a file.

    Hi Bernd,
    unfortunately i don't have the root-file (indesign etc.) to re-create/export a new pdf.
    all i got is a couple of restored (from the crashed hard drive) pdf files which are indicated as being "corrupt/damaged".
    greets   tim

  • Corrupt PDF File (Error 109) detection

    Hi there,
    I might probbably be wrong here ...
    We as a company use List&Labels to create our invoices in PDF Format. We create about 70000 invoices each month.
    Now and then we have single PDF documents that are corrupt and I'd like to program or use (in Visual Studio 2010) some PDF_Validation before sending the PDFs to our print provider as this dialog pops up in production environment and somebody has to react on it - which is not good :-) as none of the 70000 documents got printed until somebody clicks the OK button.
    We get the following Error Dialogs (see below):
    I'd like to catch the error programaticaly or analze the PDF by code to see wether it is corrupt or not.
    The PDF itself has misplaced text and invalid character spacings so it is useless to be sent to customers.
    Any ideas or recommendations?
    TIA a lot
    Ole Grossklaus

    Sven-Ole,
    I don't think you can attach files to forum posts - regardless of how you
    try to submit the attachment. You can either host the file on your own
    server, or upload it to some other file sharing service and post the link
    here.  Something that is easy to use is Dropbox. Just upload the file and
    then select to share it.
    As has been mentioned before, you cannot use Acrobat on a server, but if
    the problem is always the same, there may be an easy way to detect that
    specific problem. You would have to use a PDF library/toolkit/framework to
    get access to the structure of the PDF file. One option for this would be
    the Adobe PDF library (and because this is an Adobe forum, I'll refrain
    from mentioning any non-Adobe software).
    The key would be to - with the help of the PDF specification - identify the
    nature of the problem, and then verify that all your
    non-printing/non-processing files have the same problem. Once the source
    for the problem is identified, you can then use the PDF library (that is,
    if the file loads at all) to look for the problem in the files before you
    hand them off.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com
    On Wed, Dec 12, 2012 at 7:21 AM, SvenOleGrossklaus <[email protected]

  • Is there Mac software for repairing corrupted pdf files?

    Using Mac 10.5.8, Adobe Acrobat Pro 9.3.2.
    Many of my pdf files are encrypted on a sparsebundle disk image, as they are personal financial files.
    Randomly files become corrupted, and even though I back up, it is a recurring and very time-consuming problem.
    It's basically the only problem I have with my system, and because of the importance of the files very frustrating.
    There are PC-based file repair programs. I've come across references to a command-line program, but hey, I'm a Mac user, right?
    Is there anything?
    And while we're at it, what can I do to prevent files from becoming corrupted? These are files from my scanner, not downloaded.
    Thanks
    sjtill

    See this list for Cameras that are compatiblie with iMovie. Almost all Sony cameras made in the last 5 years work with iMovie, so odds are high that your camera will work. The only exception is that some manufacturers have started providing 60P cameras. These cannot be used at 60P in iMovie (or on a TV set for that matter). But these cameras typically have other settings like 30P or 60i that work fine.
    The bundled software with the Sony is Windows software. They do not bundle Mac software with Sonys because iMovie comes with every Mac anyway, and that is all you need.
    I think your camera works with an SDHC card. You can easily insert the SDHC card into a card reader and import the footage. New iMacs have card readers built into the side. In iMovie, you just start iMovie. Then insert the card and wait for iMovie to see it. Or you can click the camera icon on the middle toolbar if it does not see it.
    You can also attach your camera via USB. In this case, the camera must be plugged into wall power, and you attach via a USB cable.
    Follow the instructions in the manual for how to set the controls of the camera during import.
    Edited to add...You need a Mac with at least an Intel Processor to import from this camera. Older PowerPC models (G5, G4) will not work. Even with them you can get third party software to convert to a form iMovie can handle.

  • Corrupt .pdf files since install of Adobe Acrobat IX Pro

    Since installing the new Adobe Acrobat IX Pro (cloud version) on my Mac Air, l'm unable to open old .pdf files. What can be done to resolve this issue.
    Thanks.

    Hi jwalrathx,
    Do you have the latest version of Acrobat XI? Choose Help > Check for Updates. Install any available updates. Support for Office 2013 was added to PDF Maker in the 11.0.01 version that was released back in January.
    Please let us know if you need further assistance.
    Best,
    Sara

  • Corrupt pdf files cannot open

    I have a scanner that will scan documents into PDF format.
    I use this method for keeping my paper storage to a minimum by keeping physical copies of only the most important documents (i.e tax returns).  I scan documents into my laptop and then destroy the originals.  I have Adobe 9 for reading them once they are scanned in.
    My problem is recently my laptop has apparently been selective in what it will and will not open.  Some files open fine with no problems.  Others, scanned with the same scanner into the same format at the same time, will not open.
    The message I get says
    Acrobat could not open 'file name.pdf' because it is either not a supported file or because the file has been corrupted.
    The files were not sent to me via email.  I created them from my scanner or my using the pdf program as a printer (printing Word docs or web pages into pdf instead of onto paper).  When the documents were first scanned, they opened fine.  Now they do not.  Can anyone tell me how to fix this?
    I am very frustrated because I need these documents and they cannot be replaced.

    If I were you, I'd start with the support for the software you use for scanning. Sounds like it's got something out of whack.
    If it's a good PDF, Reader will open it.

  • Corrupt PDF File Recovery in CS6 Help!!

    This is actually happening more often than I would like, after I save a file, then come back to it, I receive the message "Could not complete your request because the file is not compatible with this version of photoshop". I created this file in the same version of photoshop as im trying to open it with.. Help a guy out to solve this re-occurring problem

    Why are you trying to open a pdf in Photoshop?
    It seems more prudent to save the file as a psd/psb/tif (as file size warrants) and save pdf/s off of that ("As a Copy").
    Edit: What are the exact PDF Save settings you used?

  • Firefox corrupts pdf files sent by squirrelmail.

    Using 8.0 but this has happened with several versions of Firefox. It doesn't happen in Google Chrome. The pdf is identified as text/plain.

    I will try zip file sending.
    However I have already tried the second suggestion i.e. sending mail to my
    own three IDs. Usually hotmail and dataone mail is received OK but the mail
    received through the internet mail server of the company gives this problem.
    Usually the people complaining of receiving blank file are also receiving
    mails through their company's internet servers.
    I have already checked version in my pdf distiller it is compatible with
    earlier versions upto pdf 5.0.
    The mail received blank is not "zero bytes" but it is slightly smaller,
    about 1-2 kb, than that of the correctly received ones. After opening, the
    page is totally blank. I tried saving the attachment first and then opening,
    the result is same.
    I will check the MIME and then let you know.
    With warm regards,
    O.P.Dogra

  • Reports creates a corrupt PDF File

    Hello all!
    I created a pdf with forms5 (desformat='PDF', destype='MAIL').
    During opening with acrobat reader I get the error message:
    1. to less operants
    2. found unknown token "1,52"
    What is the reason for this behaviour?
    Reagrds,
    Oliver
    P.S. With Reports 6 it works fine!

    Hello,
    may be it is the bug Bug:1172071.
    (a comma is used as the decimal separator instead of dot)
    It is corrected in 6.0.8.12
    Regards

  • Error message opening secure PDF file

    I bought a secure water marked PDF file and am unable to open it on my computer.  I get an error message saying, " There was an error processing a page.  Wrong operand type."  I'm able to download the file and open it on my Android cell phone, but if I copy the same file to my computer or download it directly from the website I get this error message when I try to open it.  I tried uninstalling and reinstalling Acrobat reader, but I still get this same problem.  Does anyone have any idea of how to fix this?  I can open other PDF files, just not that one.  I even tried using the repair Adobe reader menu option and still get the same problem.

    Sounds like pdf file is corrupt. Reader on your computer may be less tolerant of corrupt pdf files, since a corrupt pdf file can be used as a vector for a virus or malware attack.

Maybe you are looking for

  • I can't open a Numbers 08 file in Numbers 3.2. Why is that?

    I restored an old Numbers 08 file from my backup disk but I can't open it with the new version 3.2.2 I keep getting a message that says: "This spreadsheet can't be opened because it's too old. To open it, save it with Numbers '09 first." I only have

  • How to setup windowsmail on iPAD?

    How to setup windowsmail on iPAD?

  • Is it possible to reinstall Symbol dfont into the system folder?

    Since updating to Snow Leopard, there is no Symbol dfont in the system folder. I have been relying on this font for sometime now to avoid special character issues. I use InDesign and this font has become essential for my work. The Symbol font now sup

  • Sh command on router to list errors not working?

    If I do show int I get a bunch of stuff but of interest is the ser int. Serial0/0/1:0 is up, line protocol is up   Hardware is GT96K Serial   MTU 1500 bytes, BW 1984 Kbit, DLY 20000 usec,      reliability 246/255, txload 24/255, rxload 31/255   Encap

  • Temperature Rises with audio

    Hi! When you ear some music in your machine the temperature rises from 87F to 136F. Some people refer this to iTunes but i tested with other audio software and is the same thing. ex: Cog, VLC, etc... Is this normal????? I know this processor can take