GetLastFontOptimizationJSON
Fonts
Description
Returns a JSON report for the most recent OptimizeEmbeddedFonts call
Syntax
Delphi
Function TPDFlib.GetLastFontOptimizationJSON: WideString;
ActiveX
Function PDFlib::GetLastFontOptimizationJSON() As String
Available on IPDFlibrary5 from type library version 3.6
DLL
const wchar_t* DLGetLastFontOptimizationJSON(int InstanceID);
const char* DLGetLastFontOptimizationJSONA(int InstanceID);
Return values
An object with schemaVersion, optimized and a fonts array. Each font entry has object, baseFont (the new name when rewritten), status, usedCodes (the number of CIDs in use), originalBytes and optimizedBytes
The status is optimized, already-minimal, unused, existing-subset, reserved-for-new-text, shared-program, unparsed-content, unsupported-encoding, unsupported-program, invalid-descendant, invalid-cid-map or subset-failed