public class PreflightContentStream extends PreflightStreamEngine
context, processedPage
Constructor and Description |
---|
PreflightContentStream(PreflightContext _context,
org.apache.pdfbox.pdmodel.PDPage _page) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkShowTextOperators(org.apache.pdfbox.contentstream.operator.Operator operator,
List<?> arguments)
Process Text Validation.
|
protected void |
processOperator(org.apache.pdfbox.contentstream.operator.Operator operator,
List<org.apache.pdfbox.cos.COSBase> operands) |
protected void |
unsupportedOperator(org.apache.pdfbox.contentstream.operator.Operator operator,
List<org.apache.pdfbox.cos.COSBase> arguments) |
void |
validatePageContentStream()
Process the validation of a PageContent (The page is initialized by the constructor)
|
void |
validatePatternContentStream(org.apache.pdfbox.pdmodel.graphics.pattern.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(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject form)
Process the validation of a XObject Form
|
checkColorOperators, checkSetColorSpaceOperators, registerError, registerError, registerError, registerError, validateInlineImageColorSpace, validateInlineImageFilter, validateNumberOfGraphicStates, validateRenderingIntent
addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, isShouldProcessColorOperators, markedContentPoint, operatorException, processAnnotation, processChildStream, processOperator, processPage, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showGlyph, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth
public PreflightContentStream(PreflightContext _context, org.apache.pdfbox.pdmodel.PDPage _page)
public void validatePageContentStream() throws ValidationException
ValidationException
public void validateXObjContentStream(org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject form) throws ValidationException
form
- the PDFormXObject to be validated.ValidationException
public void validatePatternContentStream(org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPattern pattern) throws ValidationException
pattern
- the PDTilingPattern to be validated.ValidationException
protected void processOperator(org.apache.pdfbox.contentstream.operator.Operator operator, List<org.apache.pdfbox.cos.COSBase> operands) throws IOException
processOperator
in class org.apache.pdfbox.contentstream.PDFStreamEngine
IOException
protected void unsupportedOperator(org.apache.pdfbox.contentstream.operator.Operator operator, List<org.apache.pdfbox.cos.COSBase> arguments)
unsupportedOperator
in class org.apache.pdfbox.contentstream.PDFStreamEngine
protected void checkShowTextOperators(org.apache.pdfbox.contentstream.operator.Operator operator, List<?> arguments) throws IOException
validateStringDefinition
or validateStringArray
.operator
- arguments
- IOException
public void validateText(byte[] string) throws IOException
string
- IOException
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.