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!
![]() |
how to Embed SimHei font to en existed PDF |
Post Reply ![]() |
Author | |
qiuzhengyu ![]() Beginner ![]() Joined: 11 May 18 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() 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'); |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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