Nidhi,

If you want to check the format (like tables and images), I guess there is
no solution as of now.
You can compare the content of the PDF though it doesn't copy the content
in the same sequence/format as that in the PDF (I had added a note for
this).
Please feel free to ask any further questions.

Thanks,
Shanker

On Thu, Dec 18, 2014 at 4:52 AM, Nidhi Sharma <[email protected]>
wrote:
>
> Hi,
>
> Thanks for your suggestion but it doesn't work for me,as I copy the
> content from PDF to text file,the file data becomes irrelevent to me as it
> doen't show the data in the same format as displayed in PDF
> For eg:I have tables in PDF file and as soon as I copy them in Text
> file,the table data is not shown correctly.
> So cannot go for this option.
>
> Is there any other way my problem can be solved.
>
> On Wed, Dec 17, 2014 at 10:38 AM, shanker <[email protected]> wrote:
>>
>> Hi,
>>
>> Here is how you can implement the pdf comparison without using the UFT's
>> pdf checkpoint.:
>>
>>   1. Open the reference PDF
>>   2. Using 'SendKeys' method of Wscript, select all and copy the content
>> to clipboard (Ctrl+A and Ctrl+C)
>>   3. Create a notepad using FSO and paste (Ctrl+V) the copied content in
>> to the notepad save it.
>>   4. Close the reference pdf and notepad
>>   5. Open the pdf to be compared and repeat steps 2 - 4 with a second
>> notepad created.
>>   6. Create two FSO objects, copy open the two notepads.
>>   7. Compare these two notepads line by line.
>>   8. If there are any dynamic values like name, phone number, you should
>> create a permanent template of reference notepad and make use of RegEx
>> object to deal with the comparison so that you can check for the pattern of
>> the dynamic values.
>>   9. you better create modular functions for each of the above operation
>> and use them.
>>
>>
>> The UFT's pdf check point also works on the same logic, but I didn't use
>> it so far as I had to implement this logic before the feature was
>> introduced.
>>
>> Note: the copied content on the notepad may not be in the same order as
>> that of pdf.
>>
>> You can reach me if you have any questions on the above approach.
>> Also please reply if it worked for you.
>>
>> Thanks,
>> Shanker.
>>
>> On Tue, Dec 16, 2014 at 4:15 PM, Gaurav Gupta <[email protected]>
>> wrote:
>>>
>>> Hi,
>>>
>>> I think in this Comparison, You can use Image.GetVisibleText Property.
>>> It will allow you to check the characters of pdf if containing less then
>>> 255 chars.
>>>
>>> Also you can use Bitmap check Checkpoint because pdf will be recognized
>>> by QTP as plain Image.
>>>
>>> Thanks
>>>
>>>
>>> On Tuesday, December 2, 2014 6:41:19 PM UTC+5:30, nids wrote:
>>>>
>>>> Hi,
>>>>
>>>> Can anyone suggest me how to so PDF content comparison using UFT 11.5.
>>>>
>>>> Thanks,
>>>> Nidhi
>>>>
>>>  --
>>> --
>>> You received this message because you are subscribed to the Google
>>> "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]
>>> For more options, visit this group at
>>> http://groups.google.com/group/MercuryQTP?hl=en
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "QTP - HP Quick Test Professional - Automated Software Testing"
>>> group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> --
>> Shanker.
>>
>> --
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Shanker.

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to