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!
![]() |
Extracting Special Characters is missing |
Post Reply ![]() |
Author | |
Thedino ![]() Beginner ![]() Joined: 10 Nov 10 Location: TURKEY Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 13 Nov 10 at 11:03AM |
Hi,
If I try to extract words from a pdf file, the special Turkish Characters are missing.
I don't have the source codes. It's clear that the extracting functions are skipping them while extracting.
Is there any solution for that?
Thanks
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi!
Please use the advanced search function (above) with "chinese"... http://www.quickpdf.org/forum/search_results_posts.asp?SearchID=20101113183854&KW=Chinese Cheers and welcome here, Ingo |
|
![]() |
|
Thedino ![]() Beginner ![]() Joined: 10 Nov 10 Location: TURKEY Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo,
I searched but I couldn't the solution. My code is below. Could you please fix that?
Thanks
PDFLibrary := TQuickPDF0721.Create;
err := PDFLibrary.UnlockKey('my key'); err := PDFLibrary.AddSubsettedFont('Times New Roman', 13 ,'ĞŞİğış'); str := PDFLibrary.ExtractFilePageText('C:\OCRTest\TXT\gk2.pdf', '', 1, 3); memo1.Lines.Add( Utf8ToAnsi(str )); |
|
![]() |
|
Wheeley ![]() Senior Member ![]() ![]() Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
![]() ![]() ![]() ![]() ![]() |
Well, what is missing? Are they some other character or just not showing up? Based on your code you are converting an UTF-8 encoded string to Ansi. Now depending on that function, your Turkish characters are probably being stripped since they are not part of the Ansi character set. So debug your code and see if str has the correct characters before you call Utf8ToAnsi which is most likely stripping them.
Wheeley |
|
![]() |
|
Thedino ![]() Beginner ![]() Joined: 10 Nov 10 Location: TURKEY Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Wheeley, They are missing. I debuged millions of time. They are just missing. If I get any other character such as a box or something, I can find a way to convert. But they are missing.
|
|
![]() |
|
Thedino ![]() Beginner ![]() Joined: 10 Nov 10 Location: TURKEY Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
I sent a message through the official support link with the samples a week ago about this problem. But no answer. I just received an automatic "your message received" email. That's it.
Very interesting..!
|
|
![]() |
|
Wheeley ![]() Senior Member ![]() ![]() Joined: 30 Oct 05 Location: United States Status: Offline Points: 146 |
![]() ![]() ![]() ![]() ![]() |
Be patient. They will get to you. Right now they are trying to wrap up a new release and need to fix all the stuff they know is broken.
Wheeley |
|
![]() |
|
Thedino ![]() Beginner ![]() Joined: 10 Nov 10 Location: TURKEY Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Two months passed, still no answer.
|
|
![]() |
|
Rowan ![]() Moderator Group ![]() ![]() Joined: 10 Jan 09 Status: Offline Points: 398 |
![]() ![]() ![]() ![]() ![]() |
What is your case number? Do you mean no answer at all or just no bug fix provided?
|
|
![]() |
|
Dimitry ![]() Team Player ![]() Joined: 18 Feb 10 Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
There is special function called GetSubsetString().
This function remaps Unicode characters that were added to the font subset to the corresponding character codes assigned to the glyphs in the subsetted font.
Please try attached code snippet. Hope 'ouput.pdf' contains what you need.
You may also visit Quick PDF Library Knowledge Base
var
QPL: TQuickPDF; t, s: string; begin QPL := TQuickPDF.Create; try with QPL do begin t := UTF8Decode('ĞŞİğış'); AddSubsettedFont('Times New Roman', 13, t); s := GetSubsetString(t); SetOrigin(1); DrawText(100, 100, s); SaveToFile('output.pdf'); end; finally QPL.Free; end; Edited by Dimitry - 11 Jan 11 at 12:28PM |
|
Regards,
Dmitry |
|
![]() |
|
Thedino ![]() Beginner ![]() Joined: 10 Nov 10 Location: TURKEY Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
I Just received an answer today that the problem is located and fixed in the next release 7.24 ..!
I knew that it was a bug..!
|
|
![]() |
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