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!
![]() |
GetPageText returns no string |
Post Reply
|
| Author | |
essex
Beginner
Joined: 06 Mar 11 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: GetPageText returns no stringPosted: 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 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!
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
essex
Beginner
Joined: 06 Mar 11 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 Mar 11 at 11:15AM |
|
Thank Ingo!
However,seems it returned some characters, but it did not return all the characters.
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 Mar 11 at 12:02PM |
|
so do the convertion ;-)
|
|
![]() |
|
essex
Beginner
Joined: 06 Mar 11 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store