Top Constructors Methods
org.apache.pdfbox.preflight.process

public Class StreamValidationProcess

extends AbstractProcess
Class Inheritance
Static Imports
org.apache.pdfbox.preflight.PreflightConstants.ERROR_SYNTAX_STREAM_FX_KEYS, .PreflightConstants.ERROR_SYNTAX_STREAM_INVALID_FILTER, .PreflightConstants.ERROR_SYNTAX_STREAM_LENGTH_MISSING

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
checkDictionaryEntries(PreflightContext
the preflight context.
context
,
COSStream
the stream to check.
streamObj
)

Check dictionary entries.

protected void
checkFilters(COSStream
the stream to check.
stream
,
PreflightContext
the preflight context.
context
)

This method checks if one of declared Filter is LZWdecode.

public void
public void
Inherited from org.apache.pdfbox.preflight.process.AbstractProcess:
addFontErroraddValidationErroraddValidationErrors

Constructor Detail

StreamValidationProcessback to summary
public StreamValidationProcess()

Method Detail

checkDictionaryEntriesback to summary
protected void checkDictionaryEntries(PreflightContext context, COSStream streamObj)

Check dictionary entries. Only the Length entry is mandatory. In a PDF/A file, F, FFilter and FDecodeParms are forbidden

Parameters
context:PreflightContext

the preflight context.

streamObj:COSStream

the stream to check.

checkFiltersback to summary
protected void checkFilters(COSStream stream, PreflightContext context)

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:COSStream

the stream to check.

context:PreflightContext

the preflight context.

validateback to summary
public void validate(PreflightContext ctx) throws ValidationException

Implements org.apache.pdfbox.preflight.process.ValidationProcess.validate.

Annotations
@Override
validateStreamObjectback to summary
public void validateStreamObject(PreflightContext context, COSBase cObj)