A3DPDFDocumentEmbedFont

A3DStatus A3DPDFDocumentEmbedFont(const A3DPDFDocument *pDoc, const A3DUTF8Char *pcFontName, const char *pcEncodingName, A3DPDFELanguage eLanguage)
A3DStatus A3DPDFDocumentEmbedFont(const A3DPDFDocument* pDoc, const A3DUTF8Char* pcFontName, const char pcEncodingName, A3DPDFELanguage eLanguage)

Function to embed a font in a PDF document.

The font must be embedded before using it in the document. The document must contain at least one page before calling this function.

Return Values

A3D_SUCCESS:

A3DPDF_CANNOT_FIND_FONT:

A3DPDF_CANNOT_CREATE_ENCODING:

A3DPDF_CANNOT_CREATE_FONT:

A3DPDF_CANNOT_EMBED_FONT:

A3DPDF_EMPTY_DOCUMENT:

11.1

Parameters

pDoc: The document in which the font will be embedded.

pcFontName: The name of the font

pcEncodingName: The encoding of the font

eLanguage: The language of the font

Returns

A3D_SUCCESS in case of success or an error code