public class PreflightType3Stream extends PreflightStreamEngine
Modifier and Type | Field and Description |
---|---|
private BoundingBox |
box |
private PDType3CharProc |
charProc |
private boolean |
firstOperator |
private PDInlineImage |
image |
private float |
width |
context, cosDocument, processedPage
Constructor and Description |
---|
PreflightType3Stream(PreflightContext context,
PDPage page,
PDType3CharProc charProc) |
Modifier and Type | Method and Description |
---|---|
private void |
checkType3FirstOperator(java.util.List<COSBase> arguments)
According to the PDF Reference, the first operator in a CharProc of a Type3 font must be "d0" or "d1".
|
java.awt.Image |
createImage()
This will parse a type3 stream and create an image from it.
|
float |
getWidth() |
protected void |
processOperator(Operator operator,
java.util.List<COSBase> operands)
This is used to handle an operation.
|
void |
showType3Character(PDType3CharProc charProc) |
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, 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, transformWidth, unsupportedOperator
private final PDType3CharProc charProc
private boolean firstOperator
private float width
private PDInlineImage image
private BoundingBox box
public PreflightType3Stream(PreflightContext context, PDPage page, PDType3CharProc charProc)
public void showType3Character(PDType3CharProc charProc) throws java.io.IOException
java.io.IOException
public java.awt.Image createImage() throws java.io.IOException
java.io.IOException
- If there is an error processing the stream.protected void processOperator(Operator operator, java.util.List<COSBase> operands) throws java.io.IOException
processOperator
in class PDFStreamEngine
operator
- The operation to perform.operands
- The list of arguments.java.io.IOException
- If there is an error processing the operation.private void checkType3FirstOperator(java.util.List<COSBase> arguments) throws java.io.IOException
arguments
- java.io.IOException
public float getWidth()