Class StreamValidationProcess
java.lang.Object
org.apache.pdfbox.preflight.process.AbstractProcess
org.apache.pdfbox.preflight.process.StreamValidationProcess
- All Implemented Interfaces:
ValidationProcess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckDictionaryEntries(PreflightContext context, COSStream streamObj) Check dictionary entries.protected voidcheckFilters(COSStream stream, PreflightContext context) This method checks if one of declared Filter is LZWdecode.voidvalidate(PreflightContext ctx) voidvalidateStreamObject(PreflightContext context, COSBase cObj) Methods inherited from class org.apache.pdfbox.preflight.process.AbstractProcess
addFontError, addValidationError, addValidationErrors
-
Constructor Details
-
StreamValidationProcess
public StreamValidationProcess()
-
-
Method Details
-
validate
- Throws:
ValidationException
-
validateStreamObject
-
checkFilters
This method checks if one of declared Filter is LZWdecode. If LZW is found, the result list is updated with an error code.- Parameters:
stream- the stream to check.context- the preflight context.
-
checkDictionaryEntries
Check dictionary entries. Only the Length entry is mandatory. In a PDF/A file, F, FFilter and FDecodeParms are forbidden- Parameters:
context- the preflight context.streamObj- the stream to check.
-