public final class PDType3CharProc extends java.lang.Object implements COSObjectable, PDContentStream
Modifier and Type | Field and Description |
---|---|
private COSStream |
charStream |
private PDType3Font |
font |
Constructor and Description |
---|
PDType3CharProc(PDType3Font font,
COSStream charStream) |
Modifier and Type | Method and Description |
---|---|
PDRectangle |
getBBox()
Returns the bounding box of the contents.
|
java.io.InputStream |
getContents()
Returns this stream's content, if any.
|
PDStream |
getContentStream() |
COSStream |
getCOSObject()
Convert this standard java object to a COS object.
|
PDType3Font |
getFont() |
PDRectangle |
getGlyphBBox()
Calculate the bounding box of this glyph.
|
Matrix |
getMatrix()
Returns the matrix which transforms from the stream's space to user space.
|
PDResources |
getResources()
Returns this stream's resources, if any.
|
float |
getWidth()
Get the width from a type3 charproc stream.
|
private float |
parseWidth(Operator operator,
java.util.List<COSBase> arguments) |
private final PDType3Font font
private final COSStream charStream
public PDType3CharProc(PDType3Font font, COSStream charStream)
public COSStream getCOSObject()
COSObjectable
getCOSObject
in interface COSObjectable
public PDType3Font getFont()
public PDStream getContentStream()
public java.io.InputStream getContents() throws java.io.IOException
PDContentStream
getContents
in interface PDContentStream
java.io.IOException
- If the stream could not be readpublic PDResources getResources()
PDContentStream
getResources
in interface PDContentStream
public PDRectangle getBBox()
PDContentStream
getBBox
in interface PDContentStream
public PDRectangle getGlyphBBox() throws java.io.IOException
java.io.IOException
- If an io error occurs while parsing the stream.public Matrix getMatrix()
PDContentStream
getMatrix
in interface PDContentStream
public float getWidth() throws java.io.IOException
java.io.IOException
- if the stream could not be read, or did not have d0 or d1 as first
operator, or if their first argument was not a number.