Package org.apache.pdfbox.pdmodel.font
Class Type3StreamParser
java.lang.Object
org.apache.pdfbox.util.PDFStreamEngine
org.apache.pdfbox.pdmodel.font.Type3StreamParser
This class will handle creating an image for a type 3 glyph.
- Version:
- $Revision: 1.10 $
- Author:
- Ben Litchfield
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateImage
(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.apache.pdfbox.util.PDFStreamEngine
getColorSpaces, getCurrentPage, getFonts, getGraphicsStack, getGraphicsState, getGraphicsStates, getResources, getTextLineMatrix, getTextMatrix, getTotalCharCnt, getValidCharCnt, getXObjects, inspectFontEncoding, isForceParsing, processEncodedText, processOperator, processStream, processSubStream, processTextPosition, registerOperatorProcessor, resetEngine, setColorSpaces, setFonts, setForceParsing, setGraphicsStack, setGraphicsState, setGraphicsStates, setTextLineMatrix, setTextMatrix
-
Constructor Details
-
Type3StreamParser
public Type3StreamParser()
-
-
Method Details
-
createImage
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.
- Throws:
IOException
- If there is an error processing the stream.
-
processOperator
This is used to handle an operation.- Overrides:
processOperator
in classPDFStreamEngine
- Parameters:
operator
- The operation to perform.arguments
- The list of arguments.- Throws:
IOException
- If there is an error processing the operation.
-