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 - Problem with Russian text
  FAQ FAQ  Forum Search   Register Register  Login Login

Problem with Russian text

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


Joined: 21 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dene14 Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Russian text
    Posted: 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.
Back to Top
DELBEKE View Drop Down
Debenu Quick PDF Library Expert
Debenu Quick PDF Library Expert
Avatar

Joined: 31 Oct 05
Location: France
Status: Offline
Points: 151
Post Options Post Options   Thanks (0) Thanks(0)   Quote DELBEKE Quote  Post ReplyReply Direct Link To This Post Posted: 21 Aug 09 at 4:06PM
Your code seem good, but QuickPdf have problems with UniCode. I think Debenu is Working on it.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dene14 View Drop Down
Beginner
Beginner


Joined: 21 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dene14 Quote  Post ReplyReply Direct Link To This Post 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 = '';
Back to Top
dene14 View Drop Down
Beginner
Beginner


Joined: 21 Aug 09
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote dene14 Quote  Post ReplyReply Direct Link To This Post Posted: 24 Aug 09 at 12:53PM

Can anybody help me ???

Is it trouble of PDF library or its my trouble ???

Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 24 Aug 09 at 2:58PM
Hi!

You've seen what Jean-Luc Delbeke has written above?

Cheers, Ingo

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