Package com.pdftools.sign
Class PreparedDocument
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.pdf.Document
com.pdftools.sign.PreparedDocument
- All Implemented Interfaces:
AutoCloseable
A document that has been prepared for signing
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getHash(HashAlgorithm algorithm) Calculate the hash valueMethods inherited from class com.pdftools.pdf.Document
close, getConformance, getIsLinearized, getIsSigned, getMetadata, getPageCount, getPermissions, getSignatureFields, getXfa, open, openMethods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Method Details
-
getHash
Calculate the hash value
Calculate the hash value to create the signature from.- Parameters:
algorithm- The hash algorithm- Returns:
- Throws:
IllegalArgumentException- ifalgorithmisnull
-