09-06-2016 10:34 AM
I was wondering if it were possible to use LabVIEW to compare two PDF files (which contain images as well as text) to one another. I know that Bluebeam PDF viewer can do it, so i was hoping that there was a way to do this with LabVIEW.
Solved! Go to Solution.
09-06-2016 10:52 AM
"Comparsion" can mean many things. What kind of "comparison" are you looking for?
(If you just want to check if they are identical, you could do a binary comparison on the raw file)
09-06-2016 10:58 AM
Yes, I just want to know how identical they are; meaning I want to check to see if the images contained in the PDF are identical, even though the headers may be slightly different.
09-14-2016 11:03 AM
Im not sure how to do a binary comparison of a PDF file. Is there an example code i could look at?
09-14-2016 11:18 AM - edited 09-14-2016 11:19 AM
Read each file as a plain string, then compare the two strings for equality.
(You can also do some pre-tests, e.g. just see if the sizes are equal.)
09-14-2016 06:18 PM - edited 09-14-2016 06:19 PM
You could always perform an MD5 Hash on both of the files. If they are the same files the hash will be the same. However, if they are different it won't tell you how different they are from each other.
Chief LabVIEW Architect, Testeract | Owner, Q Software Innovations, LLC (QSI)
Director, GCentral | Admin, LabVIEW Wiki | Creator, The QControl Toolkit
Certified LabVIEW Architect | LabVIEW Champion | NI Alliance Partner