public class ContentStreamWrapper extends ContentStreamEngine
contentStreamEngineOperators, context, cosDocument, processeedPage| Constructor and Description |
|---|
ContentStreamWrapper(PreflightContext _context,
PDPage _page) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkShowTextOperators(PDFOperator operator,
List<?> arguments)
Process Text Validation.
|
protected void |
processOperator(PDFOperator operator,
List arguments)
This is used to handle an operation.
|
void |
resetEnginContext() |
void |
validPageContentStream()
Process the validation of a PageContent (The page is initialized by the constructor)
|
void |
validPatternContentStream(COSStream pattern)
Process the validation of a Tiling Pattern
|
void |
validText(byte[] string)
Process the validation of a Text operand contains in a ContentStream This validation checks that :
The font isn't missing if the Rendering Mode isn't 3
The font metrics are consistent
All character used in the text are defined in the font program.
|
void |
validXObjContentStream(PDXObjectForm xobj)
Process the validation of a XObject Form
|
checkColorOperators, checkSetColorSpaceOperators, registerError, registerOperatorProcessor, validImageColorSpace, validImageFilter, validNumberOfGraphicStates, validRenderingIntentgetColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getTotalCharCnt, getValidCharCnt, getXObjects, inspectFontEncoding, isForceParsing, processEncodedText, processOperator, processStream, processSubStream, processTextPosition, resetEngine, setColorSpaces, setFonts, setForceParsing, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrixpublic ContentStreamWrapper(PreflightContext _context, PDPage _page)
public void validPageContentStream()
throws ValidationException
ValidationExceptionpublic void validXObjContentStream(PDXObjectForm xobj) throws ValidationException
xobj - ValidationExceptionpublic void validPatternContentStream(COSStream pattern) throws ValidationException
pattern - ValidationExceptionpublic final void resetEnginContext()
protected void processOperator(PDFOperator operator, List arguments) throws IOException
PDFStreamEngineprocessOperator in class PDFStreamEngineoperator - The operation to perform.arguments - The list of arguments.IOException - If there is an error processing the operation.protected void checkShowTextOperators(PDFOperator operator, List<?> arguments) throws ContentStreamException, IOException
operator - arguments - ContentStreamExceptionIOExceptionpublic void validText(byte[] string)
throws IOException
string - IOExceptionCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.