取消
显示结果 
搜索替代 
您的意思是: 

Is it possible to compare two PDF files using labview?

已解决!
转到解答

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.

0 项奖励
1 条消息(共 6 条)
4,743 次查看

"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)

0 项奖励
2 条消息(共 6 条)
4,729 次查看

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.

0 项奖励
3 条消息(共 6 条)
4,722 次查看

Im not sure how to do a binary comparison of a PDF file. Is there an example code i could look at?

0 项奖励
4 条消息(共 6 条)
4,625 次查看
解答
已被主题作者 CETGirl 接受

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.)

0 项奖励
5 条消息(共 6 条)
4,620 次查看

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.

Quentin "Q" Alldredge

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



0 项奖励
6 条消息(共 6 条)
4,590 次查看