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!
CJK characters don't appear |
Post Reply |
Author | |
samv
Beginner Joined: 21 Feb 20 Location: Norcross, GA Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 24 Feb 20 at 5:39PM |
With QPDF v16.11 I'm using LoadFromCanvasDC() to save a PDF file, but Japanese and Chinese characters appear as blocks. I've tried
1. excluding embedded fonts with NoEmbedFontListAdd(). That removes the boxes, but nothing is rendered in their place. 2. explicitly loading "Noto*.ttf" fonts. No change. 3. calling AddCJKFont(). No change. Any hints? Thanks. |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Sam,
what's your dev environment? You have to deal with unicode strings - otherwise no success. You're sample code was great for better advice. Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
samv
Beginner Joined: 21 Feb 20 Location: Norcross, GA Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks for the quick reply.
We're using Visual Studio 2015. The strings come from UTF-16 resource files. In the code, all strings are wide. Does that count? |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Where the strings come from doesn't matter.
It's important how to handle inside your app. You can search hear through the threads (top, right, enhanced search option) or here: https://www.debenu.com/docs/pdf_library_reference/Search.php BTW: I think utf8 should be better |
|
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