public interface ContentParser
| Modifier and Type | Method and Description |
|---|---|
GraphicsState |
getGraphicsState()
Gets the graphic state object associated with the parser.
|
Shapes |
getShapes()
Gets the shapes parsed by the last run of
parse. |
java.util.Stack<java.lang.Object> |
getStack()
Gets the stack used by the content parser.
|
ContentParser |
parse(byte[][] streamBytes,
Page page)
Parse the given stream bytes.
|
Shapes |
parseTextBlocks(byte[][] source)
Optimized text parsing call which will ignore any instructions that
are not related to text extraction.
|
void |
setGlyph2UserSpaceScale(float scale)
Sets the scale factor used by some graphic state parameters so that the
to users space CTM scale factor can be applied.
|
void |
setGraphicsState(GraphicsState graphicState)
Sets the external graphics state object associated with Form's and
Tiling Patterns.
|
Shapes getShapes()
parse.java.util.Stack<java.lang.Object> getStack()
GraphicsState getGraphicsState()
void setGraphicsState(GraphicsState graphicState)
graphicState - graphic state to pass to parser.ContentParser parse(byte[][] streamBytes, Page page) throws java.lang.InterruptedException, java.io.IOException
streamBytes - bytes that make of one or more content streams.java.lang.InterruptedException - thread was interrupted.java.io.IOException - io exception during the pars.Shapes parseTextBlocks(byte[][] source) throws java.io.UnsupportedEncodingException
source - byte source to parse.java.io.UnsupportedEncodingException - encoding error.void setGlyph2UserSpaceScale(float scale)
scale - scale factor to apply to various graphic state parameters.