public abstract class PreflightStreamEngine
extends org.apache.pdfbox.contentstream.PDFStreamEngine
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
context |
protected org.apache.pdfbox.pdmodel.PDPage |
processedPage |
Constructor and Description |
---|
PreflightStreamEngine(PreflightContext context,
org.apache.pdfbox.pdmodel.PDPage page) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkColorOperators(String operation)
This method validates if the ColorOperator can be used with the color space
defined in OutputIntent dictionaries.
|
protected void |
checkSetColorSpaceOperators(org.apache.pdfbox.contentstream.operator.Operator operator,
List<org.apache.pdfbox.cos.COSBase> arguments)
This method validates if the ColorSpace used as operand is consistent with
the color space defined in OutputIntent dictionaries.
|
protected void |
registerError(String msg,
String errorCode)
Add a validation error into the PreflightContext
|
protected void |
registerError(String msg,
String errorCode,
boolean warning) |
void |
registerError(String msg,
String errorCode,
boolean warning,
Throwable cause) |
void |
registerError(String msg,
String errorCode,
Throwable cause) |
protected void |
validateInlineImageColorSpace(org.apache.pdfbox.contentstream.operator.Operator operator)
This method validates if the ColorSpace used by the InlinedImage is consistent with
the color space defined in OutputIntent dictionaries.
|
protected void |
validateInlineImageFilter(org.apache.pdfbox.contentstream.operator.Operator operator)
Throw a ContentStreamException if the LZW filter is used in a InlinedImage.
|
protected void |
validateNumberOfGraphicStates(org.apache.pdfbox.contentstream.operator.Operator operator)
Valid the number of graphic states if the operator is the Save Graphic state operator ("q")
|
protected void |
validateRenderingIntent(org.apache.pdfbox.contentstream.operator.Operator operator,
List<org.apache.pdfbox.cos.COSBase> arguments)
Check operands of the "ri" operator.
|
addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, isShouldProcessColorOperators, markedContentPoint, operatorException, processAnnotation, processChildStream, processOperator, 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, unsupportedOperator
protected PreflightContext context
protected org.apache.pdfbox.pdmodel.PDPage processedPage
public PreflightStreamEngine(PreflightContext context, org.apache.pdfbox.pdmodel.PDPage page)
protected void validateRenderingIntent(org.apache.pdfbox.contentstream.operator.Operator operator, List<org.apache.pdfbox.cos.COSBase> arguments) throws ContentStreamException
operator
- the "ri" operatorarguments
- the "ri" operandsContentStreamException
- ERROR_GRAPHIC_UNEXPECTED_VALUE_FOR_KEY if the operand is invalidprotected void validateNumberOfGraphicStates(org.apache.pdfbox.contentstream.operator.Operator operator)
operator
- protected void validateInlineImageFilter(org.apache.pdfbox.contentstream.operator.Operator operator)
operator
- the InlinedImage object (BI to EI)protected void validateInlineImageColorSpace(org.apache.pdfbox.contentstream.operator.Operator operator) throws IOException
operator
- the InlinedImage object (BI to EI)IOException
protected void checkColorOperators(String operation) throws ContentStreamException
operation
- the color operatorContentStreamException
protected void checkSetColorSpaceOperators(org.apache.pdfbox.contentstream.operator.Operator operator, List<org.apache.pdfbox.cos.COSBase> arguments) throws IOException
operator
- arguments
- IOException
protected void registerError(String msg, String errorCode)
msg
- exception detailserrorCode
- the error code.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.