ImageGear for C and C++ on Windows v19.10 - Updated
IG_PDF_doc_get_security_data
API Reference Guide > PDF Component API Reference > PDF Component Objects Reference > General Objects > HIG_PDF_DOC > IG_PDF_doc_get_security_data

Gets the security data structure for the specified document's current security handler.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_PDF_doc_get_security_data(
        HIG_PDF_DOC hDoc,
        LPAT_PDF_SECURITYDATA* lppSecData
);

Arguments:

Name Type Description
hDoc HIG_PDF_DOC The document whose security data structure is obtained.
lppSecData LPAT_PDF_SECURITYDATA* A pointer to the document's current security data structure.

Return Value:

Error count.

Supported Raster Image Formats:

This function does not process image pixels.

Remarks:

Use IG_PDF_doc_get_new_security_data to get the data structure for the document's new security handler.

The password strings in PDF are padded or truncated to exactly 32 bytes. If the password string is more than 32 bytes long, used only its first 32 bytes; if it is less than 32 bytes long, it padded by appending the required number of additional bytes from the beginning of the following padding string: < 28 BF 4E 5E 4E 75 8A 41 64 00 4E 56 FF FA 01 08 2E 2E 00 B6 D0 68 3E 80 2F 0C A9 FE 64 53 69 7A >