<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: How to compare two pdf files using QTP</title> <atom:link href="http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/feed/" rel="self" type="application/rss+xml" /><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/</link> <description></description> <lastBuildDate>Tue, 31 Jan 2012 08:17:01 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Bikash chakrabarty</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-15501</link> <dc:creator>Bikash chakrabarty</dc:creator> <pubDate>Wed, 04 May 2011 11:57:17 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-15501</guid> <description>Hi Ankur,
Its mentioned that while comparing two pdf files ,we need to copy the text from pdf file and paste in text file.
But when the pdf file contains some images like arrow mark to show direction,buttons imagesetc.Can it be possible to test with QTP?</description> <content:encoded><![CDATA[<p>Hi Ankur,<br
/> Its mentioned that while comparing two pdf files ,we need to copy the text from pdf file and paste in text file.<br
/> But when the pdf file contains some images like arrow mark to show direction,buttons imagesetc.Can it be possible to test with QTP?</p> ]]></content:encoded> </item> <item><title>By: Ralph Longobardi</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-13976</link> <dc:creator>Ralph Longobardi</dc:creator> <pubDate>Sat, 19 Feb 2011 01:49:17 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-13976</guid> <description>I use a tool Nuance PDF Professional.  It my case I am trying to compare report files--my reports contain &quot;font subsetting&quot; in the PDF report files.  Nuance was the best tool to convert PDF files to text files that preserves the &quot;report integrity&quot;--lines of the original PDF report are changed to lines in a text file report and white space is reduced--text file versions of the report are smaller and easier to compare.  I then use QTP pattern matching to change text values that don&#039;t need to be compared (eg. a date is changed to mmddyy, an account number is changed (1234 becomes aaaa).  I keep only original numeric string values that should be compared--in my case this is payroll money values.  After the cleaning step, the files are ready to be compared (older reports of the same type are compared with newer reports--the older reports were saved from a previous time and have  gone through the same process steps:
PDF-&gt;Txt--&gt;Clean values that should not be compared)</description> <content:encoded><![CDATA[<p>I use a tool Nuance PDF Professional.  It my case I am trying to compare report files&#8211;my reports contain &#8220;font subsetting&#8221; in the PDF report files.  Nuance was the best tool to convert PDF files to text files that preserves the &#8220;report integrity&#8221;&#8211;lines of the original PDF report are changed to lines in a text file report and white space is reduced&#8211;text file versions of the report are smaller and easier to compare.  I then use QTP pattern matching to change text values that don&#8217;t need to be compared (eg. a date is changed to mmddyy, an account number is changed (1234 becomes aaaa).  I keep only original numeric string values that should be compared&#8211;in my case this is payroll money values.  After the cleaning step, the files are ready to be compared (older reports of the same type are compared with newer reports&#8211;the older reports were saved from a previous time and have  gone through the same process steps:<br
/> PDF-&gt;Txt&#8211;&gt;Clean values that should not be compared)</p> ]]></content:encoded> </item> <item><title>By: Shilu</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-13722</link> <dc:creator>Shilu</dc:creator> <pubDate>Fri, 11 Feb 2011 06:53:33 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-13722</guid> <description>Hi Ankur,
You have mentioned how to copy the content from PDF. but its not mentioned properly how to paste it in the text file.Its just mentioned about the FSO. but Using FSO we can only write the contents.
So Can you please help me to explain how to paste the content to the text file?
Thanks,
Shilu</description> <content:encoded><![CDATA[<p>Hi Ankur,</p><p>You have mentioned how to copy the content from PDF. but its not mentioned properly how to paste it in the text file.Its just mentioned about the FSO. but Using FSO we can only write the contents.</p><p>So Can you please help me to explain how to paste the content to the text file?</p><p>Thanks,<br
/> Shilu</p> ]]></content:encoded> </item> <item><title>By: RICK</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-11571</link> <dc:creator>RICK</dc:creator> <pubDate>Mon, 20 Sep 2010 17:46:55 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-11571</guid> <description>Hi,
Is there is any way to compare the pdf file with the online web-page, using VBScript or any other.
Please reply.</description> <content:encoded><![CDATA[<p>Hi,</p><p>Is there is any way to compare the pdf file with the online web-page, using VBScript or any other.</p><p>Please reply.</p> ]]></content:encoded> </item> <item><title>By: Vasu</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-7699</link> <dc:creator>Vasu</dc:creator> <pubDate>Tue, 13 Apr 2010 09:14:30 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-7699</guid> <description>Hi,
I am using below code to compare Excel FIles. But when i am running, it comes yup with Error message &#039;File location not found&#039; (even though file exists in the location). Could you please help me.
I have copied below code in QTP &gt;&gt; File &#039;Test&#039; and changed the location paths and try to run.
Please help, do i need to do any thing else before?
Set objExcel = CreateObject(“Excel.Application”)
objExcel.Visible = True
Set objWorkbook1= objExcel.Workbooks.Open(“C:\result\lotexpt.xls”)
Set objWorkbook2= objExcel.Workbooks.Open(“C:\result\lotact.xls”)
set newWorkbook=objExcel.Workbooks.Add
Set objWorksheet1= objWorkbook1.Worksheets(1)
Set objWorksheet2= objWorkbook2.Worksheets(1)
Set objNewWorksheet= newWorkbook.Worksheets(1)
For Each cell In objWorksheet1.UsedRange
If cell.Value objWorksheet2.Range(cell.Address).Value Then
objNewWorksheet.Range(cell.Address).Value=cell.Value
objNewWorksheet.Range(cell.Address).Interior.ColorIndex = 3′ Highlights in red color if any changes in cells’
else
objNewWorksheet.Range(cell.Address).Interior.ColorIndex=0
End If
Next
set objExcel=nothing</description> <content:encoded><![CDATA[<p>Hi,<br
/> I am using below code to compare Excel FIles. But when i am running, it comes yup with Error message &#8216;File location not found&#8217; (even though file exists in the location). Could you please help me.</p><p>I have copied below code in QTP &gt;&gt; File &#8216;Test&#8217; and changed the location paths and try to run.</p><p>Please help, do i need to do any thing else before?</p><p>Set objExcel = CreateObject(“Excel.Application”)<br
/> objExcel.Visible = True<br
/> Set objWorkbook1= objExcel.Workbooks.Open(“C:\result\lotexpt.xls”)<br
/> Set objWorkbook2= objExcel.Workbooks.Open(“C:\result\lotact.xls”)<br
/> set newWorkbook=objExcel.Workbooks.Add<br
/> Set objWorksheet1= objWorkbook1.Worksheets(1)<br
/> Set objWorksheet2= objWorkbook2.Worksheets(1)<br
/> Set objNewWorksheet= newWorkbook.Worksheets(1)</p><p>For Each cell In objWorksheet1.UsedRange<br
/> If cell.Value objWorksheet2.Range(cell.Address).Value Then</p><p>objNewWorksheet.Range(cell.Address).Value=cell.Value<br
/> objNewWorksheet.Range(cell.Address).Interior.ColorIndex = 3′ Highlights in red color if any changes in cells’<br
/> else<br
/> objNewWorksheet.Range(cell.Address).Interior.ColorIndex=0<br
/> End If<br
/> Next<br
/> set objExcel=nothing</p> ]]></content:encoded> </item> <item><title>By: Anunay Kumar</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-7648</link> <dc:creator>Anunay Kumar</dc:creator> <pubDate>Fri, 09 Apr 2010 05:41:56 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-7648</guid> <description>The best way is to use the API. The API comes free with the reader version, the only difference being that you can just perform readonly functions with this API while for editing functions you need the full version Adobe API. The declaration for this reader API is different from the one for full version API i.e &quot;acroexch.app&quot;. The API declaration for the reader API can be found on Adobe&#039;s site. I am not able to recall it right now.</description> <content:encoded><![CDATA[<p>The best way is to use the API. The API comes free with the reader version, the only difference being that you can just perform readonly functions with this API while for editing functions you need the full version Adobe API. The declaration for this reader API is different from the one for full version API i.e &#8220;acroexch.app&#8221;. The API declaration for the reader API can be found on Adobe&#8217;s site. I am not able to recall it right now.</p> ]]></content:encoded> </item> <item><title>By: Chandrakant Dhutadmal</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-5738</link> <dc:creator>Chandrakant Dhutadmal</dc:creator> <pubDate>Wed, 25 Nov 2009 10:04:05 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-5738</guid> <description>How do we compare two pdf files containing Devnagari Text ? or for that matter containing Text other than English ? How will QTP recognize these characters ?</description> <content:encoded><![CDATA[<p>How do we compare two pdf files containing Devnagari Text ? or for that matter containing Text other than English ? How will QTP recognize these characters ?</p> ]]></content:encoded> </item> <item><title>By: Ralph Longobardi</title><link>http://www.learnqtp.com/how-to-compare-two-pdf-files-using-qtp/comment-page-1/#comment-4775</link> <dc:creator>Ralph Longobardi</dc:creator> <pubDate>Fri, 14 Aug 2009 01:34:14 +0000</pubDate> <guid
isPermaLink="false">http://www.learnqtp.com/?p=17#comment-4775</guid> <description>We regularly compare over 150-175 .pdf reports daily.
The .pdf reports are converted to .txt documents using PDF Converter tool (needed to overcome .pdf reports font subsetting).  The .txt files are &quot;cleaned&quot; removing dates, times, user information using QTP (&quot;Search and Replace&quot;).  When QTP is used, .txt files become Unicode format.  Notepad is used to convert .txt files to ANSI format.  Then .txt files are compared using QTP.  Differences are reported line by line.</description> <content:encoded><![CDATA[<p>We regularly compare over 150-175 .pdf reports daily.<br
/> The .pdf reports are converted to .txt documents using PDF Converter tool (needed to overcome .pdf reports font subsetting).  The .txt files are &#8220;cleaned&#8221; removing dates, times, user information using QTP (&#8220;Search and Replace&#8221;).  When QTP is used, .txt files become Unicode format.  Notepad is used to convert .txt files to ANSI format.  Then .txt files are compared using QTP.  Differences are reported line by line.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 5/20 queries in 0.019 seconds using disk: basic

Served from: www.learnqtp.com @ 2012-02-10 13:14:51 -->
