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 - how to Embed SimHei font to en existed PDF
  FAQ FAQ  Forum Search   Register Register  Login Login

how to Embed SimHei font to en existed PDF

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


Joined: 11 May 18
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote qiuzhengyu Quote  Post ReplyReply Direct Link To This Post Topic: how to Embed SimHei font to en existed PDF
    Posted: 11 May 18 at 6:55AM
a have a pdf file , it has SimHei font(not embeded),  the font info is as follow:

SimHei
TYPE: Type 1(CID)
Coding: GB-EUC-H
Actual font: 黑体
Actual font type: TrueType

i wonder how to embed the font to the pdf ?

i'v tryed the code as follow,but it do not work:

QP.LoadFromFile('D:\1.PDF', '')
QP.AddTrueTypeFont("SimHei", 1);
QP.SaveToFile('D:\1_out.PDF');
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: 13 May 18 at 8:48PM
Hi qiuzhengyu,

QuickPDF supports the standard fonts from windows.
If you want SimHei (as no windows standard) to be supported you should think about real embedding by AddTrueTypeFromFile:
http://www.debenu.com/docs/pdf_library_reference/AddTrueTypeFontFromFile.php

Please try the advanced search functionality here in the forum.
You'll find a lot of intersting samples:
http://www.quickpdf.org/forum/search_results_posts.asp?SearchID=20180513204242&KW=AddTrueTypeFont

Cheers and welcome here,
Ingo

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