org.pdfbox.pdmodel.font

Class Type3StreamParser


public class Type3StreamParser
extends PDFStreamEngine

This class will handle creating an image for a type 3 glyph.
Version:
$Revision: 1.10 $
Author:
Ben Litchfield

Method Summary

Image
createImage(COSStream type3Stream)
This will parse a type3 stream and create an image from it.
protected void
processOperator(PDFOperator operator, List arguments)
This is used to handle an operation.

Methods inherited from class org.pdfbox.util.PDFStreamEngine

getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getXObjects, processOperator, processOperator, processStream, processSubStream, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix, showCharacter, showString

Method Details

createImage

public Image createImage(COSStream type3Stream)
            throws IOException
This will parse a type3 stream and create an image from it.
Parameters:
type3Stream - The stream containing the operators to draw the image.
Returns:
The image that was created.

processOperator

protected void processOperator(PDFOperator operator,
                               List arguments)
            throws IOException
This is used to handle an operation.
Overrides:
processOperator in interface PDFStreamEngine
Parameters:
operator - The operation to perform.
arguments - The list of arguments.