Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to write the content obtained using the method GetPdfText
#1
Not Solved
In the below code

Set oPDF=CreateObject("LearnQuickTest.ManipulatePDF")
Set FSO = CreateObject("Scripting.FileSystemObject")
detailvalue=oPDF.GetPdfText("D:\POC\sample.pdf")

detailvalue is a string but when i debug detailvalue is empty string. 
 
When i write 'detailvalue' into a text file its is getting written but not readable using QTP, but when i open text file manually i can see the content

Please advise how to  convert the oPDF.GetPdfText("D:\POC\sample.pdf") to a readable string.
Reply
#2
Not Solved
Code:
Print oPDF.GetPdfText ("D:\POC\sample.pdf", 1,2) 


I hope this solution works for you.  I have not tried it myself but found several examples and this appears to be the syntax.  Also I think some types of PDFs have protection turned on and may not return any text or partial text if this is the case.

In your example:

detailvalue oPDF.GetPdfText ("D:\POC\sample.pdf", 1,2)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  To retrieve content of a WEBEDIT object alpha1 2 2,597 06-11-2015, 11:21 AM
Last Post: vinod123
  WinTreeView - Trouble in extracting the content of the Node Gurushankar 0 3,633 11-21-2011, 07:15 PM
Last Post: Gurushankar
  Click image button in 5th col of a webtable if searchcriteria meets content of 4cols sunshine 2 4,490 08-12-2010, 09:17 AM
Last Post: sunshine
  Test pdf content ammapalli 1 3,181 06-28-2010, 12:12 AM
Last Post: Saket
  page content in QTP meetvish2003 1 2,332 10-30-2009, 05:48 PM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)