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 - CJK characters don't appear
  FAQ FAQ  Forum Search   Register Register  Login Login

CJK characters don't appear

 Post Reply Post Reply
Author
Message
samv View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Feb 20
Location: Norcross, GA
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote samv Quote  Post ReplyReply Direct Link To This Post Topic: CJK characters don't appear
    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.

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 Feb 20 at 6:44PM
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

Back to Top
samv View Drop Down
Beginner
Beginner
Avatar

Joined: 21 Feb 20
Location: Norcross, GA
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote samv Quote  Post ReplyReply Direct Link To This Post Posted: 24 Feb 20 at 7:03PM
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?

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: 25 Feb 20 at 5:29PM
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

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