java.lang.Object
org.sejda.sambox.pdmodel.font.PDType3CharProc
- All Implemented Interfaces:
PDContentStream,COSObjectable
A Type 3 character procedure. This is a standalone PDF content stream.
- Author:
- John Hewson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBBox()Returns the bounding box of the contents.Returns this stream's content, if any.getFont()Calculate the bounding box of this glyph.Returns the matrix which transforms from the stream's space to user space.Returns this stream's resources, if any.floatgetWidth()Get the width from a type3 charproc stream.
-
Constructor Details
-
PDType3CharProc
-
-
Method Details
-
getCOSObject
- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The
COSBasethat matches this Java object.
-
getFont
-
getContentStream
-
getContents
Description copied from interface:PDContentStreamReturns this stream's content, if any.- Specified by:
getContentsin interfacePDContentStream- Returns:
- An InputStream or null.
- Throws:
IOException- If the stream could not be read
-
getResources
Description copied from interface:PDContentStreamReturns this stream's resources, if any.- Specified by:
getResourcesin interfacePDContentStream
-
getBBox
Description copied from interface:PDContentStreamReturns the bounding box of the contents.- Specified by:
getBBoxin interfacePDContentStream
-
getGlyphBBox
Calculate the bounding box of this glyph. This will work only if the first operator in the stream is d1.- Returns:
- the bounding box of this glyph, or null if the first operator is not d1.
-
getMatrix
Description copied from interface:PDContentStreamReturns the matrix which transforms from the stream's space to user space.- Specified by:
getMatrixin interfacePDContentStream
-
getWidth
Get the width from a type3 charproc stream.- Returns:
- the glyph width.
- Throws:
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.
-