3.1.2.2. DviParser
This module implements a DVI Stream Parser.
-
class PyDvi.Dvi.DviParser.DviParser[source]
Bases: object
This class implements a DVI Stream Parser.
-
_logger = <logging.Logger object at 0x2f612d0>
-
_process_pages_backward()[source]
Process the pages in backward order.
-
_process_postambule()[source]
Process the postamble where we get the number of pages and the fonts.
-
_process_preambule()[source]
Process the preamble where we get the magnification.
-
_reset()[source]
Reset the DVI parser.
-
process_page()[source]
-
process_page_forward()[source]
-
process_stream(stream)[source]
Process a DVI stream and return a DviProgam instance.
-
class PyDvi.Dvi.DviParser.DviSubroutineParser(stream)
Bases: object
-
parse()
-
class PyDvi.Dvi.DviParser.OpcodeParser_fnt_def(opcode)[source]
Bases: PyDvi.OpcodeParser.OpcodeParser
This class parse the fnt_def opcode.
-
base_opcode = 243
-
read_parameters(dvi_parser)[source]
-
class PyDvi.Dvi.DviParser.OpcodeParser_font(opcode)[source]
Bases: PyDvi.OpcodeParser.OpcodeParser
This class parse the font opcode.
-
read_parameters(dvi_parser)[source]
-
class PyDvi.Dvi.DviParser.OpcodeParser_set_char(opcode)[source]
Bases: PyDvi.OpcodeParser.OpcodeParser
This class parse the set_char opcode.
-
read_parameters(dvi_parser)[source]
-
class PyDvi.Dvi.DviParser.OpcodeParser_xxx(opcode)[source]
Bases: PyDvi.OpcodeParser.OpcodeParser
This class parse the xxx opcode.
-
base_opcode = 239
-
read_parameters(dvi_parser)[source]