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!
![]() |
Chinese font and output |
Post Reply ![]() |
Author | |
manuel76413 ![]() Beginner ![]() ![]() Joined: 31 Dec 09 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 31 Dec 09 at 5:23PM |
I began to use quickpdf 717 demo version two days ago, and I use Simple Chinese Character in many cases. Since I'm not too falimily with quick pdf library, so although many FONT relative topics in the reference are mentioned, like CJK and truetype font, But I failed after tried many ways. So, could somebody kindly enough to tell me how to output Simple Chinese Character use QuickPDF.
Thanks in advance.
|
|
![]() |
|
DELBEKE ![]() Debenu Quick PDF Library Expert ![]() ![]() Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
![]() ![]() ![]() ![]() ![]() |
The pdf specifications don't allow unicoded string. The idea is to load in the the pdf a subset of the unicode font. This subset can contain 255 characters at the maximum.
You can use AddSubsettedFont for that purpose.
When you want to draw a text whit this font, use GetSubsetString(Text) instead of the text itself Edited by DELBEKE - 03 Jan 10 at 12:27PM |
|
![]() |
|
manuel76413 ![]() Beginner ![]() ![]() Joined: 31 Dec 09 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
I tried to use AddSubsettedFont/GetSubsetString function, but that didn't work correctly. Chinese characters is display squares.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Manuel!
My knowledge in this kind isn't very special. The described problem has to do with the unicode-transformation, ansistrings, utf-8, ... In a string you can't insert a unicode-value. Cheers, Ingo |
|
![]() |
|
manuel76413 ![]() Beginner ![]() ![]() Joined: 31 Dec 09 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() |
Ingo, Thanks for your reply, maybe QuickPDF still doesn't solve this problem. AddCJKFont function only can add one type of Japanese font.
so, I think this cannot solve simply with AddSubsettedFont and GetSubsetString function.
Thanks again.
|
|
![]() |
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