ImageGear for C and C++ on Windows v21.0 - Updated
API Reference Guide / PDF Component API Reference / PDF Component Objects Reference / General Objects / HIG_PDF_LAYER / IG_PDF_layer_create
In This Topic
    IG_PDF_layer_create
    In This Topic

    Creates new layer (optional-content group) object in the document.

    Declaration:

     
    Copy Code
    AT_ERRCOUNT ACCUAPI IG_PDF_layer_create(
            HIG_PDF_DOC hDoc,
            LPSTR lpTextBuf, 
            AT_DWORD nTextLen,
            LPHIG_PDF_LAYER lphLayer
    );
    

    Arguments:

    Name Type Description
    hDoc HIG_PDF_DOC The document in which the group is used.
    lpTextBuf LPSTR The name of the layer.
    nTextLen AT_DWORD Length of the lpTextBuf.
    lphLayer LPHIG_PDF_LAYER A pointer to memory that is overwritten with the value of the newly created group object handle.

    Return Value:

    Error count.

    Supported Raster Image Formats:

    This function does not process image pixels.