Signs a PDF document.
public func sign() throws -> Void
Call this method to sign the document referenced by InputFile (or InputStream) property. The document will be signed with SigningCertificate as configured in Signature, and saved in OutputFile (OutputStream).
Use TrustedCertificates, KnownCertificates, RevocationCheck, OfflineMode and other properties of class to adjust chain validation parameters. After the signing, the chain validation log will be available in ValidationLog property.