public class PreflightContentStream extends PreflightStreamEngine
context, cosDocument, processedPage| Constructor and Description | 
|---|
| PreflightContentStream(PreflightContext _context,
                      PDPage _page) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkShowTextOperators(Operator operator,
                      List<?> arguments)Process Text Validation. | 
| protected void | processOperator(Operator operator,
               List<COSBase> operands)This is used to handle an operation. | 
| protected void | unsupportedOperator(Operator operator,
                   List<COSBase> arguments)Called when an unsupported operator is encountered. | 
| void | validatePageContentStream()Process the validation of a PageContent (The page is initialized by the constructor) | 
| void | validatePatternContentStream(PDTilingPattern pattern)Process the validation of a Tiling Pattern | 
| void | validateText(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 | validateXObjContentStream(PDFormXObject form)Process the validation of a XObject Form | 
checkColorOperators, checkSetColorSpaceOperators, registerError, registerError, registerError, registerError, validateInlineImageColorSpace, validateInlineImageFilter, validateNumberOfGraphicStates, validateRenderingIntentaddOperator, applyTextAdjustment, beginText, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getResources, getTextLineMatrix, getTextMatrix, operatorException, processAnnotation, processChildStream, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, registerOperatorProcessor, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidthpublic PreflightContentStream(PreflightContext _context, PDPage _page)
public void validatePageContentStream()
                               throws ValidationException
ValidationExceptionpublic void validateXObjContentStream(PDFormXObject form) throws ValidationException
form - the PDFormXObject to be validated.ValidationExceptionpublic void validatePatternContentStream(PDTilingPattern pattern) throws ValidationException
pattern - the PDTilingPattern to be validated.ValidationExceptionprotected void processOperator(Operator operator, List<COSBase> operands) throws IOException
PDFStreamEngineprocessOperator in class PDFStreamEngineoperator - The operation to perform.operands - The list of arguments.IOException - If there is an error processing the operation.protected void unsupportedOperator(Operator operator, List<COSBase> arguments)
PDFStreamEngineunsupportedOperator in class PDFStreamEngineoperator - The unknown operator.arguments - The list of operands.protected void checkShowTextOperators(Operator operator, List<?> arguments) throws IOException
validateStringDefinition or validateStringArray.operator - arguments - IOExceptionpublic void validateText(byte[] string)
                  throws IOException
string - IOExceptionCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.