Print Page | Close Window

how to Embed SimHei font to en existed PDF

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3561
Printed Date: 25 Apr 24 at 11:04PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: how to Embed SimHei font to en existed PDF
Posted By: qiuzhengyu
Subject: how to Embed SimHei font to en existed PDF
Date 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');



Replies:
Posted By: Ingo
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk