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!
![]() |
Problem with Russian text |
Post Reply
|
| Author | |
dene14
Beginner
Joined: 21 Aug 09 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem with Russian textPosted: 21 Aug 09 at 2:29PM |
|
Good day, guys.
I have a real problem when I try to extract PDF with a Russian language symbols, instead of it I have nothing (string = '';). In extracted data I have only latin and special symbols like #.,!"' and numbers. Im tried to set AddTrueTypeFont and AddSubsettedFont, but I think that It for saving text in PDF file. Also I tried PDFLibrary.SetFontEncoding(2), but also got no luck... Here is my code: procedure TfrmBaseConvert.Button1Click(Sender: TObject); var PDFLibrary: TQuickPDF0715; i: Integer; temp1: TStringList; begin PDFLibrary := TQuickPDF0715.Create; temp1 := TStringList.Create; try PDFLibrary.UnlockKey(- its my key -); begin PDFLibrary.LoadFromFile('C:\Documents and Settings\DENE\Desktop\HelloFromDelphi.pdf'); PDFLibrary.SetFontEncoding(2); temp1.Clear; for i := 1 to PDFLibrary.PageCount do begin PDFLibrary.SelectPage(i); temp1.Text := temp1.Text + (PDFLibrary.GetPageText(2)); end; end; finally PDFLibrary.Free; end; end; Please, help me. Thx a lot.
|
|
![]() |
|
DELBEKE
Debenu Quick PDF Library Expert
Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Aug 09 at 4:06PM |
|
Your code seem good, but QuickPdf have problems with UniCode. I think Debenu is Working on it.
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 21 Aug 09 at 9:16PM |
|
Perhaps the russian font isn't the problem?
How the pdf was made? With a free pdf-printer-driver like PDFCreator? If it's an old version (using GhostScript before version 8.15) this is normal. Does your extract result look like this here: !!\"!\"# \" !$%%#%% & $%#' ()*+ *,-* ./*\"- * + * -0 * 12\" ! \"\"\" # \"$ !3 (1 3# (1 4!'56 - !3 (1 3# (1 7- !$3# (1 8+ * 8+ 9 ** * 7 -:-\" ;*: 7+ *<+= \" &-- = %%%%%%$ = Cheers, Ingo |
|
![]() |
|
dene14
Beginner
Joined: 21 Aug 09 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 Aug 09 at 12:27AM |
|
Nope, Ingo, as I say all russian symbols are supressed, in any place with Russian string Im get clear string String = '';
|
|
![]() |
|
dene14
Beginner
Joined: 21 Aug 09 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Aug 09 at 12:53PM |
|
Can anybody help me ??? Is it trouble of PDF library or its my trouble ??? |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Aug 09 at 2:58PM |
|
Hi!
You've seen what Jean-Luc Delbeke has written above? Cheers, Ingo |
|
![]() |
|
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