ImageGear for C and C++ on Linux v19.10 - Updated
IG_PDF_basdict_create
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Basic Objects > HIG_PDF_BASDICT > IG_PDF_basdict_create

Creates a new dictionary.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_basdict_create(
        HIG_PDF_DOC hDoc,
        AT_PDF_BOOL bIndirect,
        UINT nEntries,
        LPHIG_PDF_BASOBJ lphDictionary 
);

Arguments:

Name Type Description
hDoc HIG_PDF_DOC The document in which the dictionary is used.
bIndirect AT_PDF_BOOL If TRUE, creates the dictionary as an indirect object. If FALSE, creates the dictionary as a direct object.
nEntries UINT Number of entries in the dictionary. This value is only a hint - the dictionaries grow dynamically as needed.
lphDictionary LPHIG_PDF_BASOBJ New dictionary.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

See the PDF Reference for information on dictionary objects that are part of standard PDF, such as annotations or page objects.