ImageGear for C and C++ on Windows v19.6 - Updated
IG_PDF_bookmark_add_child
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_BOOKMARK > IG_PDF_bookmark_add_child

Adds hChildBookmark as the last child of parent, adjusting the tree containing parent appropriately.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_bookmark_add_child(
        HIG_PDF_BOOKMARK hBookmark,
        HIG_PDF_BOOKMARK hChildBookmark
);

Arguments:

Name Type Description
hBookmark HIG_PDF_BOOKMARK The parent of the bookmark being added.
hChildBookmark HIG_PDF_BOOKMARK The bookmark that will become the last child of hBookmark. hChildBookmark must have been previously unlinked.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

If parent previously had no children, it is open after the child is added.