Class CMapContentParser
public class CMapContentParser
- Inheritance
-
CMapContentParser
- Inherited Members
Constructors
CMapContentParser(PdfTokenizer)
Creates a new instance of PdfContentParser
public CMapContentParser(PdfTokenizer tokeniser)
Parameters
tokeniser
PdfTokenizerthe tokeniser with the content
Fields
COMMAND_TYPE
Commands have this type.
public const int COMMAND_TYPE = 200
Field Value
Methods
DecodeCMapObject(CMapObject)
public static string DecodeCMapObject(CMapObject cMapObject)
Parameters
cMapObject
CMapObject
Returns
DecodeName(byte[])
Use DecodeName(byte[]) instead.
[Obsolete]
protected static string DecodeName(byte[] content)
Parameters
content
byte[]to decode
Returns
- string
decoded content
NextValidToken()
Reads the next token skipping over the comments.
public virtual bool NextValidToken()
Returns
Parse(IList<CMapObject>)
Parses a single command from the content.
public virtual void Parse(IList<CMapObject> ls)
Parameters
ls
IList<CMapObject>an
ArrayList
to use. It will be cleared before using.
Remarks
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.
ReadArray()
Reads an array.
public virtual CMapObject ReadArray()
Returns
- CMapObject
an array
Remarks
Reads an array. The tokeniser must be positioned past the "[" token.
ReadDictionary()
Reads a dictionary.
public virtual CMapObject ReadDictionary()
Returns
- CMapObject
the dictionary
Remarks
Reads a dictionary. The tokeniser must be positioned past the
"<<"
token.
ReadObject()
Reads a pdf object.
public virtual CMapObject ReadObject()
Returns
- CMapObject
the pdf object
ToHex(int)
Gets an hex string in the format "<HHHH>".
public static string ToHex(int n)
Parameters
n
intthe number
Returns
- string
the hex string