|
iText 7 7.1.9 API
|
Parses the page or form XObject content. More...
Public Member Functions |
|
| PdfCanvasParser (PdfTokenizer tokeniser) | |
| Creates a new instance of PdfContentParser More... |
|
| PdfCanvasParser (PdfTokenizer tokeniser, PdfResources currentResources) | |
| Creates a new instance of PdfContentParser More... |
|
| virtual IList< PdfObject > | Parse (IList< PdfObject > ls) |
| Parses a single command from the content. More... |
|
| virtual PdfTokenizer | GetTokeniser () |
| Gets the tokeniser. More... |
|
| virtual void | SetTokeniser (PdfTokenizer tokeniser) |
| Sets the tokeniser. More... |
|
| virtual PdfDictionary | ReadDictionary () |
| Reads a dictionary. More... |
|
| virtual PdfArray | ReadArray () |
| Reads an array. More... |
|
| virtual PdfObject | ReadObject () |
| Reads a pdf object. More... |
|
| virtual bool | NextValidToken () |
| Reads the next token skipping over the comments. More... |
|
Parses the page or form XObject content.
|
inline |
Creates a new instance of PdfContentParser
| tokeniser | the tokeniser with the content |
|
inline |
Creates a new instance of PdfContentParser
| tokeniser | the tokeniser with the content |
| currentResources | current resources of the content stream. It is optional parameter, which is used for performance improvements of specific cases of inline images parsing. |
|
inlinevirtual |
Gets the tokeniser.
|
inlinevirtual |
Reads the next token skipping over the comments.
true if a token was read, false if the end of content was reached
|
inlinevirtual |
Parses a single command from the content.
Parses a single command from the content. Each command is output as an array of arguments having the command itself as the last element. The returned array will be empty if the end of content was reached.
A specific behaviour occurs when inline image is encountered (BI command): in that case, parser would continue parsing until it meets EI - end of the inline image; as a result in this case it will return an array with inline image dictionary and image bytes encapsulated in PdfStream object as first element and EI command as second element.
| ls | an ArrayList to use. It will be cleared before using. If it's null will create a new ArrayList |
ArrayList given as argument or a new one
|
inlinevirtual |
Reads an array.
Reads an array. The tokeniser must be positioned past the "[" token.
|
inlinevirtual |
Reads a dictionary.
Reads a dictionary. The tokeniser must be positioned past the "<<" token.
|
inlinevirtual |
Reads a pdf object.
|
inlinevirtual |
Sets the tokeniser.
| tokeniser | the tokeniser |