Hi,
I am looking for the components which will compare two PDF files( with text and image) and show the difference highlighted in the PDF... let me know if there is any third party tools that can be integrated with my dot net code.
i have referred few links but its a separate application itself cannot integrate with my application.
Thanks
Dev
Atir TahirPosted May 9, 2019, 5:38 AM
Maniteja VegiPosted Aug 17, 2018, 7:44 AM
Maen BadwanPosted Jan 5, 2017, 1:18 PM
After parsing the object, you can extract them to external file on disk (or memory) and apply your own comparison algorithm or criteria with the conditions that you want.
The following link provides more details about the PDFDocument.ParsePages method:
https://www.leadtools.com/help/leadtools/v19/dh/pdf/leadtools.pdf~leadtools.pdf.pdfdocument~parsepages.html
Note that LEADTOOLS has image processing functions that can help in the case of image comparison feature.
Disclaimer: I am an employee of this library.
Mangesh GPosted Dec 27, 2016, 4:38 AM
{
if (!File.Exists(file2))
return false;
int i;
string f1 = File.ReadAllText(file1);
string f2 = File.ReadAllText(file2);
if (f1.Length != f2.Length)
return false;
// Remove PDF ID from file1
i = f1.LastIndexOf("/ID [<");
if (i < 0)
Console.WriteLine("Error: File is not a valid PDF file: " + file1);
else
f1 = f1.Substring(0, i) + f1.Substring(i + 75);
// Remove PDF ID from file2
i = f2.LastIndexOf("/ID [<");
if (i < 0)
Console.WriteLine("Error: File is not a valid PDF file: " + file2);
else
f2 = f2.Substring(0, i) + f2.Substring(i + 75);
return f1 == f2;
}