Compare pdf's

I have created some code in c# to compare PDF's in Acrobat V9.  I was wondering how to programmatically determine when the comparison is finished.  If you run the comparison by interactively a progress bar is shows, perhaps I can access this.  I would also like to know how to access the the summary page programmatically to determine if there are differences.  We have hundreds of pdf's to compare that need to be compared before and after codes changes. Doing this interactively would be painful.
Some code snippets so it is understood how I am attacking the problem currently.
            PdOldDoc.Open(oldFile);
            PdOldDoc.OpenAVDoc("old");
            PdNewDoc.Open(newFile);
            PdNewDoc.OpenAVDoc("new");
            object activeDoc = AdobeApp.GetActiveDoc();
            AdobeApp.MenuItemIsEnabled("DIGSIG:CompareDocuments");
            bool ret = AdobeApp.MenuItemExecute("DIGSIG:CompareDocuments");
            Sleep(10000);  //For now just wait 10 seconds until a better way can determined to figure out when the compare process finishes
            AdobeApp.CloseAllDocs();

So there are no .Net ways to compare 2 files.  I have 90% of the comparison working and seems strange that I can't silently compare 2 documents and create a 3rd document with the differences.
Through .Net and the Acrobat.dll I can:
1. open the old file
2. open the new file
3  open a compare dialog with the 2 file names populated
4. *Manually select my document comparison type and Manually select OK in the Compare dialog
5. Save the compared file through .Net
6. Close all my Acrobat windows through .Net.
Is there no way to complete step 4 via .Net and the acrobat.dll?
Would another much more $$$ option be to go to a LiveCycle module and pay 40K+ for a module to compare a batch PDFs?
Thanks for any insight you can provide.

Similar Messages

  • Compare pdf:s in Acrobat X

    I have recently updated to Acrobat X (on Win 7 X64) from Acrobat 7 (on Win XP) and can no longer compare pdf:s as I used to do.
    Comparison of pdf:s created in Word still compare as expected and generate a good report with marked differences. However, the pdf-comparison I need most is of pdf-files created from XML-files and the creation is made in Documentum. When comparing that type of pdf the compare report does not include any marks on the differences.
    Anyone who has any experience of a similar problem, or better yet, anyone who has a solution to the problem?

    No. Starting with Acrobat 9 it is no longer possible to open multiple PDF files in the same window.

  • Compare PDF Docs From The Command Line

    Hi All,
    I love the compare PDF that you get in Adboe professional - Its awesome.
    Does anyone know if you can script this to diff an entire folder of pdfs?
    I m happy to program this but do not know where to start / where the API is and whether it is possible
    Thanks

    Thanks Aandi - Very helpfull
    You mentioned: based on scripting through OLE and JavaScript
    How exactly do you do this though :( - Where is the DOM API? What are the methods available?
    Hoe else can you compare PDFs in a bulk fashion with the output being as good as Adobes?
    I have adobe distiller s well if thats helpful

  • Can we Compare PDF Output with CSV format

    Team,
    Can we Compare PDF Output with CSV format.
    In Excel I need to two text boxes asking us to browse the files and compare the files PDF & CSV format.
    Please suggest me if we have solution for this.
    Thanks!
    Kiran

    Hi
    I'm afraid the Excel Application does not support this function currently, I am suggesting you to take advantage of a third party component to achieve this goal.
    Thanks for your understanding.
    Best Regards
    Lan
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Compare PDF functionality API

    Hi All,
    Do you know how we call Adobe compare PDF utility in Java program.
    I have n no of files to compare. Is there option to call Adobe compare PDF in my java program. So that I can write a looping for all files.
    Appreciate your answer...

    Thanks Test Screen Name..No. I do not want in server. in my desk top. I have installed Adobe acrobat pro X in my desktop. What I want to do is i have 50 PDF to be compared with a single original PDF. I want to compare those 50 PDF without comparing one by one. I want to compare in a single time. So if any API is there, I can write a code by looping through 50 PDF's. Hope you got it..please let me know if you need more information..

  • Comparing pdfs

    How do you compare pdfs

    Hi,
    Adobe Acrobat has the feature to compare PDF files, and you can download Acrobat XI Pro Trial version (for 30 days free) from www.adobe.com or upgrade your subscription to Acrobat Plus.  Please see more information about Acrobat Plus at https://www.acrobat.com/acrobatplus/en/home.html.
    How to compare PDF files:
    1. Open your PDF file in Acrobat
    2. Select "Tools" from right pane
    3. Select "Document Processing" panel
    4. Select "Compare Documents"
    Thank you.
    Hisami

  • Can adobe reader Xl pro compare pdfs with images

    Can the Adobe reader Xl pro compare pdfs with images/graphics and test?

    Claudio,
    I have documents with multiple revisions. I want to know the change from revision 1 to revision 2. Can adobe show the difference between the two revisions?
    The documents(pdfs) contain some text, graphics, flowcharts etc.

  • Unable to compare PDFs docs that have had security

    Unable to compare PDFs docs that have had security.
    Even when I own the documents and remove the security manually - this is a serious bug for CS5 - has anyone found a way around this?

    Did you get any error message?

  • Compare PDFs in Batch Mode

    I currently have Acrobat X Pro and I'm curious if it is possible to use a command prompt to compare 2 PDFs and have the output\report emailed or copied out somewhere for review? We're trying to automate some daily processes where compare PDFs from the prior day.  Any suggestions are welcome if Acrobat Pro X is unable to accomplish this?  Thanks!
    Michael

    This happens on Acrobat 8 Pro on Windows XP too - the text only compare in side by side mode correctly traps the redline differences but highlights non-changed text in a very strange fashion.
    It appears to be a bug to me as when you open the comments list and click on the highlight it appears as with a type of 'Indeterminate' and the annotation 'Matching text on page 1 of other document'. When I click on the comment I get an Acrobat error dialog box with the text:
    'There was an error processing an annotation or link. There was a problem reading this document (14).'
    And I can't seem to delete the comments (presumably as Acrobat is failing to read the comments).
    Very irritating. Worse, Acrobat 9 (Mac) has no way to preconfigure the compare so a 2.3MB compare in v8 is now 13+MB in v9 and every table edge (in a 150pp doc) is highlighted as different. Otherwise the v9 compare appears very good for on screen in v9 except it doesn't degrade very well to v8 and there is no side-by-side redline mode I can see.
    Will be running v8 for a while yet.

  • How come 'compare pdf' marks images as different even though I find no difference?

    we are printing a brochure in 4 different languages and change the plate for black only (the text is black), the rest remains the same for all four versions. In oder to make sure the images are axactly the same in all four files I tried 'compare pdf' which then marks images as different although I don't find any difference, when I check the Indesign files. Where does this come from and is there any other way of checking, whether images are exactly the same if you print different versions together and only change the plate for black? For some reasons the printer does not want to put the black of the text on a different plate than the black of the images.

    we are printing a brochure in 4 different languages and change the plate for black only (the text is black), the rest remains the same for all four versions. In oder to make sure the images are axactly the same in all four files I tried 'compare pdf' which then marks images as different although I don't find any difference, when I check the Indesign files. Where does this come from and is there any other way of checking, whether images are exactly the same if you print different versions together and only change the plate for black? For some reasons the printer does not want to put the black of the text on a different plate than the black of the images.

  • Challenges with Compare Pdf

    Hi Friends
    I am using the following code to compare two versions of pdf in my web application.
    I have the following challenges with it.
    1) I need to suppress the Compare Dialog box that opens on calling DIGSIG:CompareDocuments.
    2)How the output pdf can be shown on the client machine as this is a server code that runs on the server side.Also client machine would not have Acrobat installed on it.
    3)Also how far the output pdf can be customized.Ex,Is there a possiblity to remove the first page of the output pdf.
    Kindly help me out.
    Thanks in advance. Refer the code below.
    Function  
    CompareTwoPdfFiles(ByVal OldFileName As String, ByVal NewFileName As String) As Boolean
    Dim AcrobatApp As Acrobat.CAcroAppAcrobatApp = CreateObject( 
    "AcroExch.App")AcrobatApp.Show()
    Dim OpenPdfCount As Integer
    Dim PDSaveFull As Short 
    OpenPdfCount = AcrobatApp.GetNumAVDocs
    Dim DocumentWasOpen As Boolean
    DocumentWasOpen = (OpenPdfCount > 0)
    Dim ok As Boolean
    ok = 
    True
      ' Open the "New" file first,
      ' so it appears on the right side in the comparison output.
      Dim NewPd As Acrobat.CAcroPDDoc  
    Dim NewAv As Acrobat.CAcroAVDoc  
    If ok Then
    NewPd = CreateObject( "AcroExch.PDDoc")ok = NewPd.Open(NewFileName)
    If ok Then
    NewAv = NewPd.OpenAVDoc(NewFileName)  Else
    MsgBox( "Could not open PDF file: " & NewFileName)  
    End If
      End If
      ' Open the "Old" file second,
      ' so it appears on the left side in the comparison output.
      Dim OldPd As Acrobat.CAcroPDDoc  
    Dim OldAv As Acrobat.CAcroAVDoc  
    If ok Then
    OldPd = CreateObject( "AcroExch.PDDoc")ok = OldPd.Open(OldFileName)
    If ok Then
    OldAv = OldPd.OpenAVDoc(OldFileName)  Else
    MsgBox( "Could not open PDF file: " & OldFileName)  
    End If
      End If
      If ok Then
    ok = AcrobatApp.MenuItemExecute( "DIGSIG:CompareDocuments")  
    If Not ok Then
    MsgBox( "Could not compare files")  
    End If
      End If 
      Dim NoSave As Boolean
    NoSave = True 
      If ok Then
      Dim DiffAv As Acrobat.CAcroAVDocDiffAv = AcrobatApp.GetActiveDoc
    Dim DiffPd As Acrobat.CAcroPDDocDiffPd = DiffAv.GetPDDoc
    ok = DiffPd.Save(PDSaveFull, 
    "C:\Deepak\TED Pdfs\Comparison.pdf")
      If Not ok Then 
    MsgBox( "Could not save comparison output file")  
    End If
      End If
    CompareTwoPdfFiles = ok
      End Function
    Regards
    Deepak.

    Hi Irosenth,
    Thanks for your reply. I checked with PDFLibrary SDK, there it does not seem to have a provision to compare PDF versions.
    Could you please help.
    Regards
    Deepak.

  • Compare Pdfs

    Hi All,
    Iam encountering a problem while
    comparing 2 pdfs in Adobe acrobat
    professional 7.07. While selecting the
    Documents/Compare documents, i get
    error as "Adobe Acrobat 7.0 has
    encountered a problem and needs to
    close. We are sorry for the
    inconvenience." and the error report
    shows error in the acrobat.dll. Please
    let me know the solution to this
    problem.
    -Vidya

    There is always a chance that an update to AA7 will do it. You are not updated to the latest version.

  • Comparing pdfs in acrobat 7.0 professional

    Hi Hope someone can help.
    I have made my first pdf from indesign, it is a page of text only (about 200 word) I have then totally replaced these word with a new 200 word, then made my 2nd pdf.
    After comparing these 2 pdfs, i would expect to see 1 note containing all the 200 words that were deleted.
    What I actually get is about 12 notes completly splitting up the text that was deleted into 12 notes. The underling bit is also divided up. Also on another document the notes are in the wrong place on the page.
    Can you help?
    I have tried all different ways of making the pdf ie exporting or making a postscript. but still have the same problem.
    The settings I was choosing when comparing was textual differences and consolidated report.
    Thanks for any help
    Alison

    If you are making a PDF of a WORD or similar OFFICE file in Acrobat, it uses the original application for the creation. This is similar to printing a doc file, where WORD is used, even if you do not see it opened. Thus, if you are using OFFICE 2007, then you will not be able to use PDF Maker that comes with Acrobat. That is required even for creation of PDF document from within AA. If you want to use PDF Maker, you have 2 choices - downgrade OFFICE to 2003 (actually, I personally hate OFFICE 2007 and the messed up files it makes) or upgrade your AA to AA9.

  • Acrobat Compare PDF question

    When comparing two PDF documents, I see that Acrobat can indicate to me that a certain area of text has font and size differences. Is it possible for Adobe to list the specific font and sizes on the documents as well as the generic statement of there being differences? (i.e. document 1 block of text X is in 10 point Times New Roman, document 2 block of text X is in 14 point Helvetica)
    Using Adobe Acrobat X Pro for Windows.

    I have an example file posted here, I am trying to make my 2 comments feilds populate the summary.
    http://hipspro.com/temp/HELPexample.pdf
    Can someone show me what a script to concatonate these feilds would look like?

  • Compare PDF Docs in Preview (not sure were to post)

    I need to compare to dumb PDF docs to look for changes that have been made. I was wondering if there is an "elegant" way to do this with preview. Not sure were to post this question. Thank you in advance for any help.

    You mean a more elegant way than side-by-side?
    You might try this compare utility. I haven't tested it myself and there are no reviews. It is also shareware but may allow a one-time to test.
    Or this one which seems to ask for a donation of one buck.
    -mj

Maybe you are looking for