This help topic applies only to novaPDF. If you don't have it yet, you must download it first.

Download now Buy licenses
Mar 22, 2022
novaPDF 11.x
We strive to keep our help as accurate as possible. If you notice any inconsistencies or outdated info please let us know.
The SetFontOption2 method sets embed options for a given font
HRESULT SetFontOption2(
[ in, string ] BSTR p_wsFontName,
[ in ] BOOL p_bAlwaysEmbed,
[ in ] BOOL p_bNeverEmbed


[in] font name
[out] always embed flag for the font
[out] never embed flag for the font

Return values:

S_OK on success or COM error code
NV_NOT_INITIALIZED - Initialize was not called
NV_UNKNOWN_PROFILE - no profile loaded
NV_INVALID_OPTION - wrong font name