Micro Focus QTP (UFT) Forums
PDF Automation - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: PDF Automation (/Thread-PDF-Automation)



PDF Automation - vijayendra.shukla - 06-03-2013

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!!!


RE: PDF Automation - basanth27 - 06-04-2013

Stop right there, your banging may break the table :-)

See if this helps - https://www.learnqtp.com/learnquicktestpdf-api-manipulating-pdfs-in-qtp/


RE: PDF Automation - vinod123 - 06-04-2013

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/learnquicktestpdf-api-manipulating-pdfs-in-qtp/


RE: PDF Automation - vijayendra.shukla - 06-04-2013

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!


RE: PDF Automation - basanth27 - 06-05-2013

Glad to know Smile


RE: PDF Automation - Staff - 07-05-2013

Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.