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, validRenderingIntent
getColorSpaces, 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, setTextMatrix
public ContentStreamWrapper(PreflightContext _context, PDPage _page)
public void validPageContentStream() throws ValidationException
ValidationException.
ValidationException
public void validXObjContentStream(PDXObjectForm xobj) throws ValidationException
xobj
- ValidationException
public void validPatternContentStream(COSStream pattern) throws ValidationException
pattern
- ValidationException
public final void resetEnginContext()
protected void processOperator(PDFOperator operator, List arguments) throws IOException
PDFStreamEngine
processOperator
in class PDFStreamEngine
operator
- 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
- ContentStreamException
IOException
public void validText(byte[] string) throws IOException
string
- IOException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.