Compare PDF's Programatically ???
Is there a way that we can compare two PDF's programatically?
If yes, are there any code sample that i need to look at
Thanks
I am really in a difficult situation. Our software provides an automated document compare function that uses the Acrobat 8 API. That works quite well on a technical level. Unfortunately the result are not very satisfying to our customers.
Now as they see that the new compare functions in Acrobat 9 provide much more satisfying results, they are upgrading their Acrobat installations to version 9 and expect us to provide the same results.
While waiting for an "official" solution to my problem:
Is there perhaps an undocumented interface to the new compare function, that I could use as a work-around?
Or could you perhaps implement a plug-in for us that would do the job? - Just name the costs!
Thank you!
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.
-
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. -
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
ThanksThanks 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!
KiranHi
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. -
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..
-
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?
-
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!
MichaelThis 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.
-
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 -
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. -
Hello,
I would like to compare two pdf's programtically using the SDK and create another pdf with the differences found in the comparison. Can this be done by the SDK? Can this be done in C# ?Thanks for your reply.
I would like to perform the following use cases:
1) Compare two pdfs and create a third "output" pdf with the differences
2) Provide a string to ignore specific text while comparing two pdf's. While comparing, if the text to be "ignored", is found in the first pdf but not in the second pdf, it will be ignored and the output pdf will not contain this difference. If no ignore text is provided for comparison, all differences between the two pdf's will be present in the output pdf.
3) While creating the "output" pdf with the differences, colour or format the text
Are all three possible with the SDK?
Thanks -
Compare PDF: How to suppress compare dialog box programmatically...
Hi,
We are using Acrobat 8.0. Using Visual Basic, we are opening two PDF files in Acrobat 8.0 professional.We are comparing those two documents using MenuitemExecute(DIGSIG:CompareDocuments ) command and generating the side by side comparison file programatically.
During this process after executing the command "MenuitemExecute(DIGSIG:CompareDocuments )" adobe is displaying "Compare Documents" dialog box where the user need to click OK on it in order to continue with the comparison.
My requirement is to suppress the dialog box and automate the process. Our application is developed in Visual basic.
Could you please let me know how to suppress the dialog box using Visual basic. Is it possible using VB or any alternatives for this. Because we need to compare many PDF documents so clicking OK every time requires user intervention.
Thanks for your help in advance.Acrobat Scripting Forum http://www.adobeforums.com/webx?13@@.3bbedaa6
Acrobat SDK Developer Forum http://www.adobeforums.com/webx/.eed56a0/
Maybe you are looking for
-
Delay when using BC partition in VMware Fusion
Hi everyone, I've been wondering about this for months now and finally decided to ask for your experiences. When using my Windows (XP Pro 32bit) Boot Camp partition as a VM in Fusion I always get a delay when the desktop appears and the taskbar items
-
How can I export a Video while keeping separate Audio Channels?
I'm trying to export some AVCHD footage and convert to ProRes. However, I do not want to mix the left and right channels together so that they both end up playing the same audio in the ProRes file. I have audio from one mic on Channel 1 and audio f
-
Installation from my discs in macbook pro?
I purchased macbook pro retina. I had Logic Pro 9 in my old macbook pro, but now i have not dvd reader to install my old discs. How can I manage to install Logic Pro in my new laptop without paying again?
-
when i try to combine in adobe, a window pops up says pdf maker not found. any ideas?
-
Urgent help: L3 daughter card for Nexus 5548
Hi We have 2 Nexus 5548 which is in one vPC doamin. All the servers are teamed to these switches Requirement We have to install New L3 daughter card.(N55-D160L3-V2(=)) I have gone through the Cisco websites and found that we have to do the following