Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - GetPageText returns no string
  FAQ FAQ  Forum Search   Register Register  Login Login

GetPageText returns no string

 Post Reply Post Reply
Author
Message
essex View Drop Down
Beginner
Beginner


Joined: 06 Mar 11
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote essex Quote  Post ReplyReply Direct Link To This Post Topic: GetPageText returns no string
    Posted: 09 Mar 11 at 7:28AM
I try to use asp code to extract text from a pdf file :  http://61.153.6.9/qs.pdf

Dim QP,ss

Set QP = Server.CreateObject("QuickPDFAX0724.PDFLibrary")
call  QP.UnlockKey("j59XXXXXXXX9b18gf9wu9xj4y")

If QP.LoadFromFile(server.mappath("qs.pdf"))=0 Then
   response.write "canot load file"
   response.End
End If

Call QP.SelectPage(2)    ' the first page is an image.
ss=QP.GetPageText(4)
response.write "text:"&ss
 
The pdf file contains chinese charsets, I guess quickpdf canot detect the correct font type or encoding.
 
how can i do?
wish your help, thanks!
 
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 11 at 10:24AM
Hi Essex!

I could extract the content without any problems.
To get the correct chinese characters you should
try a unicode conversion (utf8) while extraction.

Cheers and welcome here,
Ingo
 
Back to Top
essex View Drop Down
Beginner
Beginner


Joined: 06 Mar 11
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote essex Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 11 at 11:15AM
Thank Ingo!
However,seems it returned some characters, but it did not return  all the characters.
 
Smile
 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3529
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 11 at 12:02PM
so do the convertion ;-)

Back to Top
essex View Drop Down
Beginner
Beginner


Joined: 06 Mar 11
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote essex Quote  Post ReplyReply Direct Link To This Post Posted: 10 Mar 11 at 2:29AM
I checked the result later, i found what the code returned were not text content, but the font name, and location info.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store