easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

FontEmbedding Property

Gets/Sets TrueType font embedding setting.

prnFontEmbedding FontEmbedding { get; set; }

Property FontEmbedding As prnFontEmbedding

def getFontEmbedding(self)
def setFontEmbedding(self, value)

prnFontEmbedding getFontEmbedding() throws PrinterException
void setFontEmbedding(prnFontEmbedding value) throws PrinterException

function getFontEmbedding() 
function setFontEmbedding($value) 

BclPrnResult GetFontEmbedding(BclPrinter* pPrinter,
                              BclPrnFontEmbedding* poutVal);
BclPrnResult SetFontEmbedding(BclPrinter* pPrinter,
                              BclPrnFontEmbedding newVal);
Property FontEmbedding As prnFontEmbedding

bepprint -embed none|subset|fullset




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.8")
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:\test\input.doc", "C:\test\output.pdf"