ImageGear for C and C++ on Linux v20.0 - Updated
IG_PDF_register_authproc
API Reference Guide > PDF Component API Reference > PDF Component Functions Reference > IG_PDF_register_authproc

Registers the authorization callback, which will be called when opening a secured PDF file, i.e., a PDF that has either the user or the master password set.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_register_authproc(
        LPFNIG_PDF_AUTHPROC lpfnAuthProc,
        LPVOID lpAuthData
);

Arguments:

Name Type Description
lpfnAuthProc LPFNIG_PDF_AUTHPROC Authorization callback, called only if the file has been secured (that is, if the file has either the user or the master password set). This callback should obtain whatever information is needed to determine whether the user is authorized to open the file, then call IG_PDF_doc_perm_request (which returns the permissions that the authentication data enables).
lpAuthData LPVOID Pointer to user-supplied data to pass to lpfnAuthProc each time it is called.

Return Value:

Error count

Supported Raster Image Formats:

This function does not process image pixels.

Is this page helpful?
Yes No
Thanks for your feedback.