Package eu.europa.esig.dss.pdf
Interface PdfDocumentReader
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
ITextDocumentReader
,PdfBoxDocumentReader
public interface PdfDocumentReader extends Closeable
-
Method Summary
Modifier and Type Method Description Map<PdfSignatureDictionary,List<String>>
extractSigDictionaries()
Extracts PdfSignatureSictionaries present in the signaturePdfDssDict
getDSSDictionary()
Loads the last DSS dictionary from the document if exists NOTE: can return null if DSS dictionary is not presentboolean
isSignatureCoversWholeDocument(PdfSignatureDictionary signatureDictionary)
Checks if a signature for the given PDF Signature Dictionary covers the whole document
-
Method Details
-
getDSSDictionary
PdfDssDict getDSSDictionary()Loads the last DSS dictionary from the document if exists NOTE: can return null if DSS dictionary is not present- Returns:
PdfDssDict
-
extractSigDictionaries
Extracts PdfSignatureSictionaries present in the signature- Returns:
- a map between
PdfSignatureDictionary
and related field names - Throws:
IOException
- if an exception occurs
-
isSignatureCoversWholeDocument
Checks if a signature for the given PDF Signature Dictionary covers the whole document- Parameters:
signatureDictionary
-PdfSignatureDictionary
to check the result for- Returns:
- TRUE if the signature covers the whole document, false otherwise
-