25 #ifndef _FSPDF_SIGNATURE_R_H_ 26 #define _FSPDF_SIGNATURE_R_H_ 82 #ifndef _FSPDF_DEF_HANDLE_SIGNATURE_ 83 #define _FSPDF_DEF_HANDLE_SIGNATURE_ 86 FSCRT_DEFINEHANDLE(FSPDF_SIGNATURE);
90 #ifndef _FSPDF_DEF_MACRO_SIGNATURE_STATE_ 91 #define _FSPDF_DEF_MACRO_SIGNATURE_STATE_ 98 #define FSPDF_SIGNATURE_STATE_UNKNOWN 0 100 #define FSPDF_SIGNATURE_STATE_UNSIGNED 1 102 #define FSPDF_SIGNATURE_STATE_VALID 2 104 #define FSPDF_SIGNATURE_STATE_INVALID 3 109 #ifndef _FSPDF_DEF_MACRO_SIGNATURE_APPEARANCE_ 110 #define _FSPDF_DEF_MACRO_SIGNATURE_APPEARANCE_ 117 #define FSPDF_SIGNATURE_APPEARANCE_FOXITFLAG 0x0001 119 #define FSPDF_SIGNATURE_APPEARANCE_LABEL 0x0002 121 #define FSPDF_SIGNATURE_APPEARANCE_REASON 0x0004 123 #define FSPDF_SIGNATURE_APPEARANCE_DATE 0x0008 125 #define FSPDF_SIGNATURE_APPEARANCE_DN 0x0010 127 #define FSPDF_SIGNATURE_APPEARANCE_LOCATION 0x0020 129 #define FSPDF_SIGNATURE_APPEARANCE_NAME 0x0040 131 #define FSPDF_SIGNATURE_APPEARANCE_IMAGE 0x0080 133 #define FSPDF_SIGNATURE_APPEARANCE_TEXT 0x0100 138 #ifndef _FSPDF_DEF_MACRO_SIGNATURE_ICONFITMODE_ 139 #define _FSPDF_DEF_MACRO_SIGNATURE_ICONFITMODE_ 150 #define FSPDF_SIGNATURE_ICONFITMODE_NORMAL 0 156 #define FSPDF_SIGNATURE_ICONFITMODE_FITFIELD 1 161 #ifndef _FSPDF_DEF_HANDLER_SIGNATURE_ 162 #define _FSPDF_DEF_HANDLER_SIGNATURE_ 170 typedef struct _FSPDF_SIGNATUREHANDLER
266 #ifndef _FSPDF_DEF_HANDLER_SIGNATUREICONPROVIDER_ 267 #define _FSPDF_DEF_HANDLER_SIGNATUREICONPROVIDER_ 275 typedef struct _FSPDF_SIGNATUREICONPROVIDER
1043 FSCRT_PAGE page, FSCRT_PROGRESS* renderProgress);
FS_RESULT FSPDF_Doc_CountSignatures(FSCRT_DOCUMENT doc, FS_INT32 *count)
Get signature count in a PDF document.
float FS_FLOAT
32-bit floating-point number, single precision.
Definition: fs_base_r.h:148
FS_RESULT FSPDF_Signature_GetState(FSPDF_SIGNATURE sig, FS_INT32 *state)
Get current state of a signature.
FS_RESULT FSPDF_Doc_GetSignature(FSCRT_DOCUMENT doc, FS_INT32 index, FSPDF_SIGNATURE *sig)
Get a signature object.
FS_RESULT FSPDF_Signature_GetDoc(FSPDF_SIGNATURE sig, FSCRT_DOCUMENT *doc)
Retrieve the PDF document object related to a specific signature.
FS_RESULT FSPDF_Signature_GetSubFilter(FSPDF_SIGNATURE sig, FSCRT_BSTR *subFilter)
Get sub filter of a signature.
unsigned int FS_DWORD
32-bit unsigned integer.
Definition: fs_base_r.h:142
Structure for Signature Icon Provider Handler.
Definition: fpdf_signature_r.h:275
FS_RESULT FSPDF_Signature_GetSigner(FSPDF_SIGNATURE sig, FSCRT_BSTR *signer)
Get signer name of a signature.
FS_RESULT FSPDF_RenderContext_StartPageSignatures(FSPDF_RENDERCONTEXT pdfRenderContext, FSCRT_RENDERER renderer, FSCRT_PAGE page, FSCRT_PROGRESS *renderProgress)
Render all signatures of a page on render context.
Structure for pause control in progressive process.
Definition: fs_base_r.h:3077
FS_RESULT FSPDF_Signature_SetIconProvider(FSPDF_SIGNATUREICONPROVIDER *iconProvider)
Set signature icon provider to Foxit PDF SDK.
FS_LPVOID clientData
User-defined data.
Definition: fpdf_signature_r.h:177
FS_RESULT FSPDF_Signature_GetBitmap(FSPDF_SIGNATURE sig, FSCRT_BITMAP *bitmap)
Get the icon bitmap in signature visual display.
FS_LPVOID clientData
User-defined data.
Definition: fpdf_signature_r.h:282
FS_RESULT FSPDF_RenderContext_DrawSignature(FSPDF_RENDERCONTEXT pdfRenderContext, FSCRT_RENDERER renderer, FSPDF_SIGNATURE sig)
Render a signature on a render context.
FS_RESULT FSPDF_Signature_GetAppearanceFlags(FSPDF_SIGNATURE sig, FS_DWORD *apFlags)
Get signature appearance flags.
int FS_INT32
32-bit signed integer.
Definition: fs_base_r.h:175
FS_RESULT FSPDF_Signature_CountCerts(FSPDF_SIGNATURE sig, FS_INT32 *certCount)
Count of certificates in the dictionary's certificate chain.
Structure for date and time.
Definition: fs_base_r.h:2018
FS_RESULT FSPDF_Signature_GetFilter(FSPDF_SIGNATURE sig, FSCRT_BSTR *filter)
Get the name of the preferred signature handler.
FS_RESULT FSPDF_Signature_GetCert(FSPDF_SIGNATURE sig, FS_INT32 index, FSCRT_BSTR *signedCert)
Get a signature certificate name from certificate chain.
FS_RESULT FSPDF_Signature_StartVerify(FSPDF_SIGNATURE sig, FSCRT_PROGRESS *verifyProgress)
Verify a signature progressively by using a signature signing handler specified by its Filter and Sub...
FS_RESULT FSPDF_Signature_IsSigned(FSPDF_SIGNATURE sig, FS_BOOL *isSigned)
Determine whether a signature is signed or not.
int FS_BOOL
Boolean type (This should be TRUE or FALSE).
Definition: fs_base_r.h:133
FS_RESULT FSPDF_Signature_GetText(FSPDF_SIGNATURE sig, FSCRT_BSTR *text)
Get the text content out of signature appearance.
FS_RESULT FSPDF_Signature_GetFlags(FSPDF_SIGNATURE sig, FS_DWORD *flags)
Get annotation flags of a signature.
FS_RESULT FSPDF_Signature_RegisterHandler(const FSCRT_BSTR *filter, const FSCRT_BSTR *subFilter, FSPDF_SIGNATUREHANDLER *sigHandler)
A third-party handler registers their handler to Foxit PDF SDK, along with its filter and sub filter...
void * FS_LPVOID
A pointer to any types.
Definition: fs_base_r.h:127
FS_RESULT FSPDF_Signature_GetPageIndex(FSPDF_SIGNATURE sig, FS_INT32 *pageIndex)
Get the index of a PDF page containing the specified signature.
FS_RESULT FSPDF_Signature_GetDateTime(FSPDF_SIGNATURE sig, FSCRT_DATETIMEZONE *dt)
Get signing time of a signature(M entry in the dictionary).
FS_RESULT FSPDF_Signature_GetContactInfo(FSPDF_SIGNATURE sig, FSCRT_BSTR *contactInfo)
Get contact information of a signature.
FS_RESULT FSPDF_Signature_GetLocation(FSPDF_SIGNATURE sig, FSCRT_BSTR *location)
Get location information of signature owner(Location entry in the dictionary).
Structure for byte string.
Definition: fs_base_r.h:611
Structure for Signature Handler.
Definition: fpdf_signature_r.h:170
FS_RESULT FSPDF_Signature_GetAtPos(FSCRT_PAGE page, FS_FLOAT x, FS_FLOAT y, FS_FLOAT tolerance, FSPDF_SIGNATURE *sig)
Get a signature object by a specific position in PDF page.
FS_RESULT FSPDF_Signature_GetDistinguishedName(FSPDF_SIGNATURE sig, FSCRT_BSTR *dn)
Get distinguished name of the signature owner.
int FS_RESULT
Result code for functions in Foxit PDF SDK.
Definition: fs_base_r.h:160
FS_RESULT FSPDF_Signature_GetReason(FSPDF_SIGNATURE sig, FSCRT_BSTR *reason)
Get signing reason of a signature.