PsTokenizer
Overview
PsTokenizer is a class in Aspose.Page FOSS for Python.
Tokenize PostScript/EPS bytes into language tokens.
This class provides 8 methods for working with PsTokenizer objects in Python programs.
Available methods include: __init__, next_token, read_asciihex_decoded, read_asciihex_source, read_raw, read_remaining, read_until_ascii85_eod, read_until_asciihex_eod.
All public members are accessible to any Python application after installing the Aspose.Page FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__(data: bytes) | |
next_token() → PsToken | None | Return the next token or None when input is exhausted. |
read_asciihex_decoded(max_bytes: int) → tuple[bytes, bool] | |
read_asciihex_source(max_decoded_bytes: int) → bytes | |
read_until_asciihex_eod() → bytes | |
read_until_ascii85_eod() → bytes | |
read_raw(count: int) → bytes | |
read_remaining() → bytes |