CPDFSignature Class Reference
| Inherits from | NSObject | 
|---|---|
| Declared in | CPDFSignature.h | 
  signers
	Get signer of who signed the document.
@property (nonatomic, readonly) NSArray<CPDFSigner*> *signersDiscussion
Get signer of who signed the document.
Declared In
CPDFSignature.h
  modifyInfos
	Get all changes to the document.
@property (nonatomic, readonly) NSArray<CPDFModifyInfo*> *modifyInfosDiscussion
Get all changes to the document.
Declared In
CPDFSignature.h
  name
	The name of the signer or issuer who signed the document.
@property (nonatomic, readonly) NSString *nameDiscussion
The name of the signer or issuer who signed the document.
Declared In
CPDFSignature.h
  date
	Get the signing time of the document.
@property (nonatomic, readonly) NSDate *dateDiscussion
Get the signing time of the document.
Declared In
CPDFSignature.h
  filter
	Get the filter of the signature.
@property (nonatomic, readonly) NSString *filterDiscussion
Get the filter of the signature.
Declared In
CPDFSignature.h
  reason
	Get the signing reason.
@property (nonatomic, readonly) NSString *reasonDiscussion
Get the signing reason.
Declared In
CPDFSignature.h
  permissions
	Signature Permission * The access permissions granted for this document. * * @discussion Valid values shall be: * 1: No changes to the document shall be permitted. Any change to the document shall invalidate the signature. * 2: Permitted changes shall be filling in forms, instantiating page templates, and signing. Other changes shall invalidate the signature. * 3: Permitted changes shall be filling in forms, instantiating page templates, signing, and annotation creation, deletion, and modification. Other changes shall invalidate the signature.
@property (nonatomic, readonly) NSInteger permissionsDiscussion
Signature Permission * The access permissions granted for this document. * * @discussion Valid values shall be: * 1: No changes to the document shall be permitted. Any change to the document shall invalidate the signature. * 2: Permitted changes shall be filling in forms, instantiating page templates, and signing. Other changes shall invalidate the signature. * 3: Permitted changes shall be filling in forms, instantiating page templates, signing, and annotation creation, deletion, and modification. Other changes shall invalidate the signature.
Declared In
CPDFSignature.h
– pageIndexWithDocument:
	Get the page index of the signature.
- (NSUInteger)pageIndexWithDocument:(CPDFDocument *)documentParameters
| document | CPDFDocument object. | 
|---|
Return Value
Return the page index of the signature.
Discussion
Get the page index of the signature.
Declared In
CPDFSignature.h
– verifySignatureWithDocument:
	Verify the permissions.
- (void)verifySignatureWithDocument:(CPDFDocument *)documentParameters
| document | The CPDFDocument object that needs to be verified. | 
|---|
Discussion
Verify the permissions.
Declared In
CPDFSignature.h
– signatureWidgetAnnotationWithDocument:
	Sign the corresponding signature field.
- (CPDFSignatureWidgetAnnotation *)signatureWidgetAnnotationWithDocument:(CPDFDocument *)documentParameters
| document | Signed file object CPDFDocument. | 
|---|
Return Value
Sign forms.
Discussion
Sign the corresponding signature field.
Declared In
CPDFSignature.h
+ generatePKCS12CertWithInfo:password:toPath:certUsage:
	Create a PKCS12 certificate. C (Country), ST (Province), L (Locality);O (Organization), OU (Organizational Unit), CN (Common Name), emailAddress (Email Address). info: “/C=cn/ST=bj/L=bj/O=hd/OU=dev/CN=hello/[email protected]”
+ (BOOL)generatePKCS12CertWithInfo:(NSDictionary *)info password:(NSString *)password toPath:(NSString *)path certUsage:(CPDFCertUsage)certUsageParameters
| info | object. | 
|---|---|
| password | Certificate file password. | 
| certUsage | The usage of this certificate. | 
| save_path | Certificate file save path. | 
Return Value
Return true: Succeed. Return false: Fail.
Discussion
Create a PKCS12 certificate. C (Country), ST (Province), L (Locality);O (Organization), OU (Organizational Unit), CN (Common Name), emailAddress (Email Address). info: “/C=cn/ST=bj/L=bj/O=hd/OU=dev/CN=hello/[email protected]”
Declared In
CPDFSignature.h