ImageGear Professional v18.2 > 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.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_PDF_register_authproc( LPFNIG_PDF_AUTHPROC lpfnAuthProc, LPVOID lpAuthData ); |
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. |
Error count
This function does not process image pixels.