DVI libraries for Python
- Matplotlib dviread:
matplotlib.dviread.Dviiterates over the pages of a DVI file and returns every glyph and rule with its position, font name and size. Matplotlib uses it to place LaTeX-rendered text (text.usetex). It needs a TeX installation for the font metrics. PSF-based license.
To render DVI pages from Python, call dvipng or dvisvgm with subprocess.
- Matplotlib dviread matplotlib.dviread reads TeX DVI files in Python. How to list pages, glyphs, rules and fonts with positions, extract approximate text and find TeX font files.