ImageGear for C and C++ on Windows v19.4 - Updated
IG_PDF_basdict_put_name
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > Basic Objects > HIG_PDF_BASDICT > IG_PDF_basdict_put_name

Sets the name value of a dictionary key, adding the key to the dictionary if it is not already present.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_basdict_put_name(
        HIG_PDF_BASOBJ hDictionary,
        HIG_PDF_ATOM hKey,
        AT_PDF_BOOL bIndirect,
        HIG_PDF_ATOM nName
);

Arguments:

Name Type Description
hDictionary HIG_PDF_BASOBJ The dictionary in which a value is set.
hKey HIG_PDF_ATOM The key whose value is set. See the PDF Reference to obtain the names of keys in dictionary objects that are part of standard PDF, such as annotations or page objects.
bIndirect AT_PDF_BOOL If TRUE, creates the key value as an indirect object. If FALSE, creates the key value as a direct object.
nName HIG_PDF_ATOM The name value to set.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.