Foxit PDF SDK
|
Public Member Functions | |
~PagingSealSignature () | |
Destructor. | |
bool | GenerateAppearance () |
Generate the appearance of paging seal signature. More... | |
void | SetAPStateBitmap (PagingSealAPState ap_state, const common::Bitmap &bitmap) |
Set a bitmap for the appearance of signature state. More... | |
void | SetPagingSealConfig (PagingSealConfig paging_seal_config) |
Set the config of paging seal signature. More... | |
![]() | |
Signature (const foxit::pdf::PDFDoc &document, foxit::pdf::objects::PDFDictionary *sig_field_dict) | |
Constructor, from signature field dictionary. More... | |
Signature (const interform::Field &field) | |
Constructor, with parent class object. More... | |
~Signature () | |
Destructor. | |
bool | ClearSignedData () |
Clear the data and appearance if current signature is singed and verified valid. More... | |
void | EnableEmbedFont (bool enable_embed_font) |
Enable or disable embed font. More... | |
void | EnableIncrementalSaveForFirstSigning (bool enable_incremental_save) |
Enable or disable incremental save for first signing. User should call this function before calling function Signature::StartSign. Default: false. More... | |
bool | GenerateAppearance () |
Generate the appearance of unsigned signature. More... | |
uint32 | GetAppearanceFlags () |
Get signature appearance flags. More... | |
common::Bitmap | GetBitmap () |
Get a bitmap which is used for the signature appearance. More... | |
bool | GetByteRangeArray (uint32 out_byte_range_array[4]) |
Get the byte ranges data, including 4 elements. More... | |
WString | GetCert (int32 index) const |
Get a certificate from current signature's certificate chain by index. More... | |
int32 | GetCertCount () const |
Get the count of certificates in current signature's certificate chain. More... | |
String | GetCertificateInfo (const char *key) |
Get certificate information. More... | |
DocPermission | GetDocPermission () |
Get document permission for current signature. More... | |
PDFDoc | GetDocument () |
Get the PDF document, which current signature belongs to. More... | |
FieldMDPAction | GetFieldMDPAction () |
Get FieldMDP("MDP" means modification detection and prevention) action type. More... | |
WStringArray | GetFieldMDPActionFields () |
Get the field name array which is used for FieldMDP action. More... | |
String | GetFilter () |
Get filter. More... | |
WString | GetKeyLabel (LabelName label_name) |
Get the string for specified key label. More... | |
WString | GetKeyValue (KeyName key) |
Get the string value for specified key name. More... | |
PAdESLevel | GetPAdESLevel () |
Get PAdES level. More... | |
SignatureArray | GetPagingSealGroupElements () |
Get the group elements of current paging seal signature. More... | |
PagingSealSignature | GetPagingSealSignature () |
Get the paging seal signature. More... | |
objects::PDFDictionary * | GetSignatureDict () const |
Get signature dictionary. More... | |
SignatureType | GetSignatureType () |
Get signature type. More... | |
PDFDoc | GetSignedVersionDocument (const wchar_t *file_path) |
Get the PDF document in the signed version in which current signature was signed. More... | |
DateTime | GetSignTime () |
Get time of signing. More... | |
uint32 | GetState () |
Get current state. More... | |
String | GetSubFilter () |
Get sub filter. More... | |
bool | IsEmpty () const |
Check whether current object is empty or not. More... | |
bool | IsSigned () |
Check whether current signature is signed or not. More... | |
bool | IsTimeStamp () |
Check if current signature is a time stamp signature. More... | |
void | SetAppearanceContent (const String &appearance_content) |
Set customized appearance content (as low level drawing operation commands) for signed signature appearance. More... | |
void | SetAppearanceFlags (uint32 appearance_flags) |
Set signature appearance flags. More... | |
void | SetBitmap (const common::Bitmap &bitmap) |
Set a bitmap for the signature appearance. More... | |
void | SetCertChain (const WStringArray &cert_chain) |
Set a certificate chain. More... | |
void | SetCustomObject (const char *key, objects::PDFObject *pdf_object) |
Set custom PDF object for signature dictionary. More... | |
void | SetDefaultContentsLength (uint32 default_length) |
Set the default length of signature contents which represents signature value (known as signed data). More... | |
void | SetDocPermission (DocPermission permission) |
Set document permission for current signature. More... | |
void | SetFieldMDPActionFields (const FieldMDPAction &action, const WStringArray &field_array) |
Set FieldMDP("MDP" means modification detection and prevention) action names array. More... | |
void | SetFilter (const char *filter) |
Set filter. More... | |
void | SetImage (const char *file_path, int frame_index) |
Set an image for the signature appearance, with a specified frame index. More... | |
void | SetImage (const common::Image &image, int frame_index) |
Set an image for the signature appearance, with a specified frame index. More... | |
void | SetImage (const wchar_t *file_path, int frame_index) |
Set an image for the signature appearance, with a specified frame index. More... | |
void | SetKeyLabel (LabelName label_name, const wchar_t *label_value) |
Set the string for specified key label. More... | |
void | SetKeyValue (KeyName key, const wchar_t *value) |
Set the string value for specified key name. More... | |
void | SetSignTime (const DateTime &sign_time) |
Set time of signing. More... | |
void | SetSubFilter (const char *sub_filter) |
Set sub filter. More... | |
common::Progressive | StartSign (const wchar_t *cert_path, const foxit::WString &cert_password, foxit::pdf::Signature::DigestAlgorithm digest_algorithm, foxit::common::file::StreamCallback *stream_callback, const void *client_data=0, foxit::common::PauseCallback *pause=0) |
Start signing current signature if current signature is unsigned. More... | |
common::Progressive | StartSign (const wchar_t *cert_path, const WString &cert_password, DigestAlgorithm digest_algorithm, const char *save_path, const void *client_data=0, common::PauseCallback *pause=0) |
Start signing current signature if current signature is unsigned. More... | |
common::Progressive | StartSign (const wchar_t *cert_path, const WString &cert_password, DigestAlgorithm digest_algorithm, const wchar_t *save_path, const void *client_data=0, common::PauseCallback *pause=0) |
Start signing current signature if current signature is unsigned. More... | |
common::Progressive | StartSign (foxit::common::file::StreamCallback *cert_file_stream, const foxit::WString &cert_password, foxit::pdf::Signature::DigestAlgorithm digest_algorithm, foxit::common::file::StreamCallback *stream_callback, const void *client_data=0, foxit::common::PauseCallback *pause=0) |
Start signing current signature if current signature is unsigned. More... | |
common::Progressive | StartSign (foxit::common::file::StreamCallback *cert_file_stream, const WString &cert_password, DigestAlgorithm digest_algorithm, const char *save_path, const void *client_data=0, common::PauseCallback *pause=0) |
Start signing current signature if current signature is unsigned. More... | |
common::Progressive | StartSign (foxit::common::file::StreamCallback *cert_file_stream, const WString &cert_password, DigestAlgorithm digest_algorithm, const wchar_t *save_path, const void *client_data=0, common::PauseCallback *pause=0) |
Start signing current signature if current signature is unsigned. More... | |
common::Progressive | StartVerify (const void *client_data=0, common::PauseCallback *pause=0) |
Start verifying the intergrity of current signature if current signature is signed. More... | |
![]() | |
Field (const Field &field) | |
Constructor, with another form field object. More... | |
Field (const PDFDoc &document, objects::PDFDictionary *field_dict) | |
Constructor, from field dictionary. More... | |
~Field () | |
Destructor. | |
common::Alignment | GetAlignment () const |
Get the alignment value. More... | |
WString | GetAlternateName () const |
Get alternate name. More... | |
Control | GetControl (const foxit::pdf::PDFPage &page, int index) |
Get a form control by index, in a specified PDF page. More... | |
Control | GetControl (int index) |
Get a form control by index. More... | |
int | GetControlCount () const |
Get count of form controls. More... | |
int | GetControlCount (const foxit::pdf::PDFPage &page) const |
Get count of form controls in a specified PDF page. More... | |
DefaultAppearance | GetDefaultAppearance () const |
Get the default appearance data. More... | |
WString | GetDefaultValue () const |
Get default value. More... | |
objects::PDFObject * | GetDefaultValueObj () const |
Get the PDF object of field's default value. More... | |
objects::PDFDictionary * | GetDict () const |
Get the PDF dictionary of current object. More... | |
uint32 | GetFlags () const |
Get field flags. More... | |
objects::PDFObject * | GetInheritedAttribute (const char *attribute_name) const |
Get the PDF object for specified attribute which may be inherited from the ancestor node in the field tree. More... | |
WString | GetMappingName () const |
Get mapping name. More... | |
int | GetMaxLength () const |
Get maximum length of the field's text, in characters. More... | |
WString | GetName () const |
Get field name. More... | |
ChoiceOptionArray | GetOptions () const |
Get options of list box or combo box. More... | |
int | GetTopVisibleIndex () |
Get top index of option for scrollable list boxes. More... | |
Type | GetType () const |
Get field type. More... | |
WString | GetValue () const |
Get value. More... | |
objects::PDFObject * | GetValueObj () const |
Get the PDF object of field's value. More... | |
bool | IsEmpty () const |
Check whether current object is empty or not. More... | |
bool | operator!= (const Field &other) const |
Not equal operator. More... | |
Field & | operator= (const Field &other) |
Assign operator. More... | |
bool | operator== (const Field &other) const |
Equal operator. More... | |
bool | Reset () |
Reset data in current field to its default value. (Not support signature field) More... | |
void | SetAlignment (common::Alignment alignment) |
Set alignment property of a form, as a document-wide default value. (Not support signature field) More... | |
void | SetAlternateName (const wchar_t *alternate_name) |
Set alternate name. (Not support signature field) More... | |
void | SetDefaultAppearance (const DefaultAppearance &default_ap) |
Set default appearance data. More... | |
void | SetDefaultValue (const wchar_t *value) |
Set default value. More... | |
void | SetFlags (uint32 flags) |
Set field flags. More... | |
void | SetMappingName (const wchar_t *name) |
Set mapping name. (Not support signature field) More... | |
void | SetMaxLength (int max_length) |
Set maximum length of the field's text, in characters. More... | |
void | SetOptions (const ChoiceOptionArray &option_array) |
Set options of list box or combo box. More... | |
void | SetTopVisibleIndex (int index) |
Set top index for scrollable list boxes. More... | |
void | SetValue (const wchar_t *value) |
Set value. More... | |
![]() | |
FS_HANDLE | Handle () const |
Get the handle of current object. More... | |
This class represents a paging seal signature object for signing the signatures. It is a type of signature field, so class PagingSealSignature is derived from class pdf::Signature. A new paging seal signature object would be returned by function PDFDoc::AddPagingSealSignature, instead of PDFPage::AddSignature.
A paging seal signature contains a few signatures or a few paging seal annotation. To set the configuration of paging seal signature, please use the function PagingSealSignature::SetPagingSealConfig.
Enumeration for paging seal signature state to set appearance.
Values of this enumeration should be used alone.
bool foxit::pdf::PagingSealSignature::GenerateAppearance | ( | ) |
Generate the appearance of paging seal signature.
This function should be called before signing and the paging seal config should be set already. If this function is not called, the page will not display the paging seal signatures.
void foxit::pdf::PagingSealSignature::SetAPStateBitmap | ( | PagingSealAPState | ap_state, |
const common::Bitmap & | bitmap | ||
) |
Set a bitmap for the appearance of signature state.
If user wants the setting by this function has effect on paging seal signatures' appearance, please call function PagingSealSignature::GenerateAppearence after this function.
[in] | ap_state | The state of signature. |
[in] | bitmap | A bitmap to be set to the appearance. |
void foxit::pdf::PagingSealSignature::SetPagingSealConfig | ( | PagingSealConfig | paging_seal_config | ) |
Set the config of paging seal signature.
[in] | paging_seal_config | A paging seal configuration to be set. |