@interface PSPDFDigitalSignatureCoordinator : NSObject
The digital signature coordinator handles signing and presenting a digitally signed document. Signing a document with a certificate creates a readonly copy, as the file has to be completely re-written.
NoteDepending on your application logic you will want to choose where to store this new file. PSPDFKit suggests a randomized temporary folder + file name as default location.
Register your subclass via overrideClass:withClass: on the configuration object.
Path that is used for storing the newly created document, which will be digitally signed.
fileNameis a suggestion based on the title of the original document, which can be used in the path. The path will be sanitized, and it will me made sure that the suffix is .pdf.
- (nonnull NSString *) pathForDigitallySignedDocumentFromOriginalDocument: (nonnull PSPDFDocument *)document suggestedFileName:(nonnull NSString *)fileName;
func pathForDigitallySignedDocument(fromOriginalDocument document: PSPDFDocument, suggestedFileName fileName: String) -> String
Present the digitally signed document, with the signed form element on
NoteIf you override this method, you are responsible to present/push (a controller with) the document.
Subclassing hook that allows to configure the signature appearance.
NoteIf an ink signature has lines set, the
signatureGraphicwill be preconfigured.
- (void) configureSignatureAppearanceWithBuilder: (nonnull PSPDFSignatureAppearanceBuilder *)builder document:(nonnull PSPDFDocument *)document signature: (nonnull PSPDFSignatureContainer *)signature;