FontEmbedding Property

Gets/Sets TrueType font embedding setting.


Type: prnFontEmbedding

Remarks

The option PRN_FONT_EMBED_FULLSET (embedding fullset of font) will cause significant increase in PDF file size, especially for CJK font, and therefore not recommended.  If you need to embed font, PRN_FONT_EMBED_SUBSET (embed subset of font) will be a better choice.

Note: If you need to embed non-standard fonts like barcode font, we recommend setting FontEmbedAsType0 property to True.

Example Usage


Set oPrinter = CreateObject("easyPDF.Printer.5")
Set oPrintJob = oPrinter.PrintJob
Set oPDFSetting = oPrintJob.PDFSetting

oPDFSetting.FontEmbedAsType0 = True
oPDFSetting.FontEmbedding = PRN_FONT_EMBED_SUBSET
oPDFSetting.FontSubstitution = PRN_FONT_SUBST_NONE

oPrintJob.PrintOut "C:\input.doc", "C:\output.pdf"

 

 

<<