Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PDF Automation
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi folks,

I am using Dani V.'s code to read the content within a selection area in a PDF.

Code:
Set acroPDDoc = acroAVDoc.GetPDDoc()
Set acroRect = CreateObject("AcroExch.Rect")
acroRect.Top = 600
acroRect.Left = 25
acroRect.Bottom = 400
acroRect.Right = 185

Set PDTextSelect = acroPDDoc.CreateTextSelect(pageNo, acroRect)


Now how do I find the Top, Left, Bottom, Right of already selected area in PDF? I am banging my head for so many hours in vain but couldnt figure it out. Any help would be greatly appreciated!!!
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Stop right there, your banging may break the table :-)

See if this helps - https://www.learnqtp.com/learnquicktestp...fs-in-qtp/
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Use PDF API functions which is avaliable for download as exe file just install it use it and for instructions of the installation use this link https://www.learnqtp.com/learnquicktestp...fs-in-qtp/
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
Thanks Basanth! I may have broken the table yesterday Big Grin ..

looks like the link is blocked in here so cant download it unless getting approval for it. but thanks anyway! If I can get it installed I would sure to let others know how did it go!
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Glad to know Smile
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#6
Solved: 11 Years, 4 Months, 3 Weeks ago
Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to find and change text in PDF document using QTP UFT automation VBscript alexwhite 0 12,074 02-18-2017, 04:20 AM
Last Post: alexwhite
  .pdf file automation umeshganti 2 5,983 04-23-2008, 10:05 AM
Last Post: umeshganti

Forum Jump:


Users browsing this thread: 1 Guest(s)