![]() |
PDFix SDK
7.2.0
|
Typedefs | |
typedef int(* | PdfCancelProc) (void *client_data) |
PdfCancelProc. More... | |
typedef void(* | PdfEventProc) (void *client_data) |
PdfEventProc. More... | |
typedef void(* | PdsObjectEventProc) (PdsObject *obj, PdfEventType event, const wchar_t *key, int index, void *client_data) |
PdsObjectEventProc. More... | |
typedef void(* | PdsContentEventProc) (PdsContent *content, PdfEventType event, void *client_data) |
PdsContentEventProc. More... | |
typedef void(* | PdsPageObjectEventProc) (PdsPageObject *page_object, PdfEventType event, void *client_data) |
PdsPageObjectEventProc. More... | |
typedef unsigned long(* | PdfDigestDataProc) (int buffer_count, const unsigned char *buffer_to_sign[], unsigned long buffer_size[], unsigned char *sign_buff, unsigned long sign_buff_size, void *client_data) |
PdfDigestDataProc. More... | |
typedef int(* | PsStreamReadProc) (int offset, void *buffer, int size, void *client_data) |
typedef int(* | PsStreamWriteProc) (int offset, void *buffer, int size, void *client_data) |
typedef void(* | PsStreamDestroyProc) (void *client_data) |
Called at end of stream so you can do clean up and free allocated memory. More... | |
typedef int(* | PsStreamGetSizeProc) (void *client_data) |
typedef int(* | PsStreamGetPosProc) (void *client_data) |
This is called to get the current position. More... | |
typedef void(* | PdfSecurityDestroyProc) (void *client_data) |
This is called when security handler is destroyed. More... | |
typedef bool(* | PdfSecuritySetAuthorizationDataProc) (void *data, void *client_data) |
This is called when PdfCustomSecurityHandler::SetAuthorizationData procedure is executed. More... | |
typedef bool(* | PdfSecurityOnInitProc) (const PdsDictionary *trailer, void *client_data) |
This is called when the document is authorized. More... | |
typedef int(* | PdfSecurityGetPermissionsProc) (void *client_data) |
This is called to get the permissions set to the current document. More... | |
typedef bool(* | PdfSecurityIsMetadataEncryptedProc) (void *client_data) |
This is called to get whether to encrypt metadata dictionary or not. More... | |
typedef void(* | PdfSecurityUpdateEncryptDictProc) (PdsDictionary *encrypt_dict, const PdsArray *id_array, void *client_data) |
This is called on document save when encryption dictionary is filled or just updated. More... | |
typedef bool(* | PdfSecurityAuthorizeOwnerProc) (void *client_data) |
This is called when user wants to authorize owner of the document. see PdfDoc::Authorize. More... | |
typedef int(* | PdfSecurityGetDecryptSizeProc) (const void *data, int size, void *client_data) |
This is called to get the size of decrypted data. More... | |
typedef int(* | PdfSecurityDecryptContentProc) (int objnum, int gennum, const void *data, int data_size, void *dest, int dest_size, void *client_data) |
This is called to decrypt the data. More... | |
typedef int(* | PdfSecurityGetEncryptSizeProc) (const void *data, int size, void *client_data) |
This is called to get the size of encrypted data. More... | |
typedef int(* | PdfSecurityEncryptContentProc) (int objnum, int gennum, const void *data, int data_size, void *dest, int dest_size, void *client_data) |
This is called to encryp the data. More... | |
typedef bool(* | PdfGetAuthDataProc) (PdfDoc *doc, PdfSecurityHandler *handler, void *client_data) |
This is called to get the authorization data and set it to the handler. More... | |
typedef PdfSecurityHandler *(* | PdfSecurityCreateHandlerProc) (void *client_data) |
This is called when the document is authozied to create registered security handler. More... | |
typedef bool(* | PdfAnnotHandlerCanCopyProc) (PdfAnnot *annot) |
This is called to know if the copy operation is expected to succeed. More... | |
typedef void *(* | PdfAnnotHandlerCopyProc) (PdfAnnot *annot) |
This is called to copy data from the annotation object to a new clipboard structure. More... | |
typedef bool(* | PdfAnnotHandlerCanPasteProc) (PdfPage *dest_page, const PdfPoint *center, void *client_data) |
This is called to know if the paste operation is expected to succeed. More... | |
typedef PdfAnnot *(* | PdfAnnotHandlerPasteProc) (PdfPage *dest_page, const PdfPoint *center, void *client_data) |
typedef bool(* | PdfAnnotHandlerDestroyDataProc) (void *client_data) |
This is called to destroy annotation clipboard data created by copy procedure. More... | |
typedef void(* | PdfAnnotHandlerDestroyProc) () |
This is called when the annotation handler is being destroyed. | |
typedef bool(* | PdfActionHandlerCanCopyProc) (PdfAction *action) |
This is called to know if the copy operation is expected to succeed. More... | |
typedef void *(* | PdfActionHandlerCopyProc) (PdfAction *action) |
This is called to copy data from the action object to a new clipboard structure. More... | |
typedef bool(* | PdfActionHandlerCanPasteProc) (PdfDoc *dest_doc, void *client_data) |
This is called to know if the paste operation is expected to succeed. More... | |
typedef PdfAction *(* | PdfActionHandlerPasteProc) (PdfDoc *dest_doc, void *client_data) |
This is called to paste action clipboard data to the destination document. More... | |
typedef bool(* | PdfActionHandlerDestroyDataProc) (void *client_data) |
This is called to destroy action clipboard data created by copy procedure. More... | |
typedef void(* | PdfActionHandlerDestroyProc) () |
This is called to when the action handler is being destroyed. | |
typedef PdfEnumResultType(* | PdfAnnotEnumProc) (PdfPage *page, PdfAnnot *annot, void *client_data) |
This is called to destroy action clipboard data created by copy procedure. More... | |
typedef PdfEnumResultType(* | PdfPageObjectEnumProc) (PdfPage *page, PdsPageObject *object, void *client_data) |
This is called to destroy action clipboard data created by copy procedure. More... | |
typedef PdfEnumResultType(* | PdfStructElemEnumProc) (PdfDoc *doc, PdsStructElement *parent_elem, int index, void *client_data) |
This is called to destroy action clipboard data created by copy procedure. More... | |
PDFix SDK Callbacks.
typedef bool(* PdfActionHandlerCanCopyProc) (PdfAction *action) |
This is called to know if the copy operation is expected to succeed.
action | The action object. |
typedef bool(* PdfActionHandlerCanPasteProc) (PdfDoc *dest_doc, void *client_data) |
This is called to know if the paste operation is expected to succeed.
dest_doc | The destination document. |
client_data | The action data to test. |
typedef void *(* PdfActionHandlerCopyProc) (PdfAction *action) |
This is called to copy data from the action object to a new clipboard structure.
action | The action object. |
typedef bool(* PdfActionHandlerDestroyDataProc) (void *client_data) |
This is called to destroy action clipboard data created by copy procedure.
client_data |
This is called to paste action clipboard data to the destination document.
dest_doc | The destination document. |
client_data | The action data to paste. |
typedef PdfEnumResultType(* PdfAnnotEnumProc) (PdfPage *page, PdfAnnot *annot, void *client_data) |
This is called to destroy action clipboard data created by copy procedure.
client_data |
typedef bool(* PdfAnnotHandlerCanCopyProc) (PdfAnnot *annot) |
This is called to know if the copy operation is expected to succeed.
annot | The annotation object. |
typedef bool(* PdfAnnotHandlerCanPasteProc) (PdfPage *dest_page, const PdfPoint *center, void *client_data) |
This is called to know if the paste operation is expected to succeed.
dest_page | The page to which the annotation would be pasted. |
center | The location for the center of the annotation on the destination page. |
client_data | The copied annotation data to test. |
typedef void *(* PdfAnnotHandlerCopyProc) (PdfAnnot *annot) |
This is called to copy data from the annotation object to a new clipboard structure.
annot | The annotation object. |
typedef bool(* PdfAnnotHandlerDestroyDataProc) (void *client_data) |
This is called to destroy annotation clipboard data created by copy procedure.
client_data | The clipborad annotation data to be deleted. |
typedef PdfAnnot *(* PdfAnnotHandlerPasteProc) (PdfPage *dest_page, const PdfPoint *center, void *client_data) |
This is called to paste annotation clipboard data to the destination page aligned to the center point.
dest_page | The page to which the annotation is pasted. |
center | The location for the center of the annotation on the destination page. |
client_data | The copied annotation data to paste. |
typedef int(* PdfCancelProc) (void *client_data) |
PdfCancelProc.
\proc_type the name of procedure currently executed. \proc_progress the name of procedure currently executed.
client_data | Pointer to user-supplied data to pass to PdfCancelProc each time it is called. |
typedef unsigned long(* PdfDigestDataProc) (int buffer_count, const unsigned char *buffer_to_sign[], unsigned long buffer_size[], unsigned char *sign_buff, unsigned long sign_buff_size, void *client_data) |
PdfDigestDataProc.
buffer_count | |
buffer_to_sign | |
buffer_size | |
sign_buff | (filled by method) If the buffer is null function returns required length of the buffer. |
sign_buff_size | Length of a signed buffer. |
client_data | Pointer to user-supplied data to pass to PdfDigestDataProc each time it is called. |
typedef void(* PdfEventProc) (void *client_data) |
PdfEventProc.
client_data | Pointer to user-supplied data to pass to PdfEventProc each time it is called. |
typedef bool(* PdfGetAuthDataProc) (PdfDoc *doc, PdfSecurityHandler *handler, void *client_data) |
This is called to get the authorization data and set it to the handler.
doc | current pdf document |
handler | security handler |
client_data | User-supplied data. |
typedef PdfEnumResultType(* PdfPageObjectEnumProc) (PdfPage *page, PdsPageObject *object, void *client_data) |
This is called to destroy action clipboard data created by copy procedure.
client_data |
typedef bool(* PdfSecurityAuthorizeOwnerProc) (void *client_data) |
This is called when user wants to authorize owner of the document. see PdfDoc::Authorize.
client_data | User-supplied data that was passed. |
typedef PdfSecurityHandler *(* PdfSecurityCreateHandlerProc) (void *client_data) |
This is called when the document is authozied to create registered security handler.
client_data | User-supplied data that was passed. |
typedef int(* PdfSecurityDecryptContentProc) (int objnum, int gennum, const void *data, int data_size, void *dest, int dest_size, void *client_data) |
This is called to decrypt the data.
objnum | Object number |
gennum | Generation number |
data | data to decrypt |
data_size | size ot the data to decrypt |
dest | output data |
dest_size | size of the output data |
client_data | User-supplied data that was passed. |
typedef void(* PdfSecurityDestroyProc) (void *client_data) |
This is called when security handler is destroyed.
client_data | User-supplied data that was passed. |
typedef int(* PdfSecurityEncryptContentProc) (int objnum, int gennum, const void *data, int data_size, void *dest, int dest_size, void *client_data) |
This is called to encryp the data.
objnum | Object number |
gennum | Generation number |
data | data to encrypt |
data_size | size ot the data to encrypt |
dest | output data |
dest_size | size of the output data |
client_data | User-supplied data that was passed. |
typedef int(* PdfSecurityGetDecryptSizeProc) (const void *data, int size, void *client_data) |
This is called to get the size of decrypted data.
data | data to decrypt |
size | size of the data |
client_data | User-supplied data that was passed. |
typedef int(* PdfSecurityGetEncryptSizeProc) (const void *data, int size, void *client_data) |
This is called to get the size of encrypted data.
data | data to encrypt |
size | size of the data |
client_data | User-supplied data that was passed. |
typedef int(* PdfSecurityGetPermissionsProc) (void *client_data) |
This is called to get the permissions set to the current document.
client_data | User-supplied data that was passed. |
typedef bool(* PdfSecurityIsMetadataEncryptedProc) (void *client_data) |
This is called to get whether to encrypt metadata dictionary or not.
client_data | User-supplied data that was passed. |
typedef bool(* PdfSecurityOnInitProc) (const PdsDictionary *trailer, void *client_data) |
This is called when the document is authorized.
trailer | document trailer dictionary |
client_data | User-supplied data that was passed. |
typedef bool(* PdfSecuritySetAuthorizationDataProc) (void *data, void *client_data) |
This is called when PdfCustomSecurityHandler::SetAuthorizationData procedure is executed.
data | current pdf document |
client_data | User-supplied data that was passed. |
typedef void(* PdfSecurityUpdateEncryptDictProc) (PdsDictionary *encrypt_dict, const PdsArray *id_array, void *client_data) |
This is called on document save when encryption dictionary is filled or just updated.
encrypt_dict | raw pointer to document's encryption dictionary |
id_array | raw pointer to document's ID array |
client_data | User-supplied data that was passed. |
typedef PdfEnumResultType(* PdfStructElemEnumProc) (PdfDoc *doc, PdsStructElement *parent_elem, int index, void *client_data) |
This is called to destroy action clipboard data created by copy procedure.
client_data |
index | parent struct element |
client_data | index of child in structElem array |
typedef void(* PdsContentEventProc) (PdsContent *content, PdfEventType event, void *client_data) |
PdsContentEventProc.
obj | object on which the event occurs |
event | the event type |
client_data | Pointer to user-supplied data to pass to PdfEventProc each time it is called. |
typedef void(* PdsObjectEventProc) (PdsObject *obj, PdfEventType event, const wchar_t *key, int index, void *client_data) |
PdsObjectEventProc.
obj | object on which the event occurs |
event | the event type |
key | the changed key (applicable to PdsDictionary) |
index | the changed index (applicable to PdsArray) |
client_data | Pointer to user-supplied data to pass to PdfEventProc each time it is called. |
typedef void(* PdsPageObjectEventProc) (PdsPageObject *page_object, PdfEventType event, void *client_data) |
PdsPageObjectEventProc.
obj | object on which the event occurs |
event | the event type |
client_data | Pointer to user-supplied data to pass to PdfEventProc each time it is called. |
typedef void(* PsStreamDestroyProc) (void *client_data) |
Called at end of stream so you can do clean up and free allocated memory.
client_data | User-supplied data that was passed. |
typedef int(* PsStreamGetPosProc) (void *client_data) |
This is called to get the current position.
client_data | User-supplied data that was passed. |
typedef int(* PsStreamGetSizeProc) (void *client_data) |
This is called to get the length of the stream, which may be NULL if the stream cannot be set to a new position. PsStreamSeekProc() and PsStreamGetLength() must be provided together.
client_data | User-supplied data that was passed. |
typedef int(* PsStreamReadProc) (int offset, void *buffer, int size, void *client_data) |
Called by the PsStream object for Read operation. This procedure must return the number of bytes specified by size, obtaining them in any way it wishes. If your procedure reads data from a file, it is generally quite inefficient to open the file, read the bytes, then close the file each time bytes are requested. Instead, consider opening the file the first time bytes are requested from it, reading the entire file into a secondary buffer, and closing the file.When subsequent requests for data from the file are received, simply copy data from the secondary buffer, rather than re - opening the file.
buffer | Buffer into which your procedure must place the number of bytes specified by size. |
offset | The seek position. |
size | The size of data in bytes. |
client_data | User-supplied data that was passed. |
typedef int(* PsStreamWriteProc) (int offset, void *buffer, int size, void *client_data) |
Called by the PsStream object for Write operation. This procedure must return the number of bytes specified by size, obtaining them in any way it wishes. If your procedure reads data from a file, it is generally quite inefficient to open the file, read the bytes, then close the file each time bytes are requested. Instead, consider opening the file the first time bytes are requested from it, reading the entire file into a secondary buffer, and closing the file.When subsequent requests for data from the file are received, simply copy data from the secondary buffer, rather than re - opening the file.
buffer | Buffer which your procedure must place the number of bytes specified by size. |
offset | The seek position. |
size | The size of data in bytes. |
client_data | User-supplied data that was passed. |