Class SignatureManager
java.lang.Object
com.ironsoftware.ironpdf.signature.SignatureManager
Class used to add , edit and remove bookmarks from a
PdfDocument
outline.
Bookmarks are arranged and navigated in a parent/child node hierarchy, similar to an HTML DOM.
See: PdfDocument.getBookmark()
See: Bookmark
-
Constructor Summary
ConstructorDescriptionSignatureManager
(InternalPdfDocument internalPdfDocument) Please get BookmarkManager byPdfDocument.getBookmark()
instead. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list ofVerifiedSignature
.void
void
SignPdfWithSignature
(Signature signature) Signs the PDF with digital signature with advanced options.void
SignPdfWithSignature
(Signature signature, SignaturePermissions permissions) Signs the PDF with digital signature with advanced options.boolean
Verifies all the PDF signatures for this PDF document and returns true if there are no invalid signatures.
-
Constructor Details
-
SignatureManager
Please get BookmarkManager byPdfDocument.getBookmark()
instead.- Parameters:
internalPdfDocument
- the internal pdf document
-
-
Method Details
-
getVerifiedSignature
Returns a list ofVerifiedSignature
.- Returns:
- list of
VerifiedSignature
-
SignPdfWithSignature
Signs the PDF with digital signature with advanced options. Note that the PDF will not be fully signed until Saved usingPdfDocument.saveAs(Path)
" orPdfDocument.getBinaryData()
- Parameters:
signature
- the PdfSignature
-
SignPdfWithSignature
Signs the PDF with digital signature with advanced options. Note that the PDF will not be fully signed until Saved usingPdfDocument.saveAs(Path)
" orPdfDocument.getBinaryData()
- Parameters:
signature
- the PdfSignaturepermissions
- Permissions regarding modifications to the document after the digital signature is applied
-
VerifyPdfSignatures
public boolean VerifyPdfSignatures()Verifies all the PDF signatures for this PDF document and returns true if there are no invalid signatures.- Returns:
- true if all digital signatures for this PDF document are currently valid. Editing a PDF document in any way will invalidate signatures.
-
RemoveSignature
public void RemoveSignature()
-