<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;CUYMRHw7eyp7ImA9Wx5TFk0.&quot;'><id>tag:blogger.com,1999:blog-7150530452800082876</id><updated>2010-07-31T12:06:25.203-07:00</updated><title>Diagnose QTP</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://diagnoseqtp.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7150530452800082876/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://diagnoseqtp.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Vijayendra</name><uri>http://www.blogger.com/profile/16511449270151958238</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;CkEMSX07fyp7ImA9Wx5TFE0.&quot;'><id>tag:blogger.com,1999:blog-7150530452800082876.post-3283285779746772908</id><published>2010-07-29T03:32:00.000-07:00</published><updated>2010-07-29T03:51:28.307-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2010-07-29T03:51:28.307-07:00</app:edited><title>How To Compare Text Content Of Two PDF Files</title><content type='html'>It can be done in two steps:&lt;br /&gt;(1) Opening the pdf files and getting their text content from clipboard&lt;br /&gt;(2) Comparing the two strings containing text contents.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is an example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Dim varPath1, varPath2, str1, str2&lt;br /&gt;varPath1 = "C:\first.pdf"&lt;br /&gt;varPath2 = "C:\second.pdf"&lt;br /&gt;str1= getPDFText (varPath1)&lt;br /&gt;str2= getPDFText (varPath2)&lt;br /&gt;if StrComp(str1,str2,0) &lt;&gt; 0 Then&lt;br /&gt;msgbox "PDF files do not have identical text"&lt;br /&gt;else&lt;br /&gt;msgbox "PDF files have identical text"&lt;br /&gt;end If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Public Function getPDFText (varPath)&lt;br /&gt;Dim MyClipboard&lt;br /&gt;SystemUtil.Run varPath&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Type micAltDwn + "t" + micAltUp&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Type "s"&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Type micDwn&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Type "Enter"&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Type micCtrlDwn + "a" + micCtrlUp&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Type micCtrlDwn + "c" + micCtrlUp&lt;br /&gt;Set MyClipboard = CreateObject("Mercury.Clipboard")&lt;br /&gt;getPDFText = MyClipboard.GetText&lt;br /&gt;MyClipboard.Clear&lt;br /&gt;Set MyClipboard=Nothing&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Activate&lt;br /&gt;Window("regexpwndtitle:=Adobe Reader","regexpwndclass:=AdobeAcrobat").Close&lt;br /&gt;End Function&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7150530452800082876-3283285779746772908?l=diagnoseqtp.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://diagnoseqtp.blogspot.com/feeds/3283285779746772908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://diagnoseqtp.blogspot.com/2010/07/how-to-compare-text-content-of-two-pdf.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7150530452800082876/posts/default/3283285779746772908?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7150530452800082876/posts/default/3283285779746772908?v=2'/><link rel='alternate' type='text/html' href='http://diagnoseqtp.blogspot.com/2010/07/how-to-compare-text-content-of-two-pdf.html' title='How To Compare Text Content Of Two PDF Files'/><author><name>Vijayendra</name><uri>http://www.blogger.com/profile/16511449270151958238</uri><email>noreply@blogger.com</email><gd:extendedProperty name='OpenSocialUserId' value='17352188774618364102'/></author><thr:total>0</thr:total></entry></feed>