CPDFSignature Class Reference

Inherits from NSObject
Declared in CPDFSignature.h

  signers

Get signer of who signed the document.

@property (nonatomic, readonly) NSArray<CPDFSigner*> *signers

Discussion

Get signer of who signed the document.

Declared In

CPDFSignature.h

  modifyInfos

Get all changes to the document.

@property (nonatomic, readonly) NSArray<CPDFModifyInfo*> *modifyInfos

Discussion

Get all changes to the document.

Declared In

CPDFSignature.h

  fieldName

Get the field name of signature form field.

@property (nonatomic, readonly) NSString *fieldName

Discussion

Get the field name of signature form field.

Declared In

CPDFSignature.h

  bounds

Get the location where the signature form field is located.

@property (nonatomic, readonly) CGRect bounds

Discussion

Get the location where the signature form field is located.

Declared In

CPDFSignature.h

  name

The name of the signer or issuer who signed the document.

@property (nonatomic, readonly) NSString *name

Discussion

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 *date

Discussion

Get the signing time of the document.

Declared In

CPDFSignature.h

  filter

Get the filter of the signature.

@property (nonatomic, readonly) NSString *filter

Discussion

Get the filter of the signature.

Declared In

CPDFSignature.h

  subFilter

Get the sub filter of the signature.

@property (nonatomic, readonly) NSString *subFilter

Discussion

Get the sub filter of the signature.

Declared In

CPDFSignature.h

  reason

Get the signing reason.

@property (nonatomic, readonly) NSString *reason

Discussion

Get the signing reason.

Declared In

CPDFSignature.h

  location

The hostname or physical location of the CPU which was used to sign the document.

@property (nonatomic, readonly) NSString *location

Discussion

The hostname or physical location of the CPU which was used to sign the document.

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 permissions

Discussion

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 *)document

Parameters

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 *)document

Parameters

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 *)document

Parameters

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/emailAddress=hello@world.com”

+ (BOOL)generatePKCS12CertWithInfo:(NSDictionary *)info password:(NSString *)password toPath:(NSString *)path certUsage:(CPDFCertUsage)certUsage

Parameters

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/emailAddress=hello@world.com”

Declared In

CPDFSignature.h