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_DOC / IG_PDF_doc_set_new_crypt_handler
In This Topic
    IG_PDF_doc_set_new_crypt_handler
    In This Topic

    Sets specified document's new security handler (the security handler that will be used after the document is saved).

    Declaration:

     
    Copy Code
    AT_ERRCOUNT ACCUAPI IG_PDF_doc_set_new_crypt_handler(
            HIG_PDF_DOC hDoc,
            HIG_PDF_ATOM hNewCryptHandler
    );
    

    Arguments:

    Name Type Description
    hDoc HIG_PDF_DOC The document whose new security handler is set.
    hNewCryptHandler HIG_PDF_ATOM The PDF atom for the name of the new security handler to use for the document. Use IG_PDF_ATOM_NULL to remove security from the document.

    Return Value:

    Error count.

    Supported Raster Image Formats:

    This function does not process image pixels.

    Remarks:

    This function returns with no action if the new security handler is the same as the old one.