Output Formats
Aspose.TeX FOSS for Python supports three output formats through interchangeable output device
classes. Pass the appropriate device to TeXJob and call run() to obtain the typeset output.
PdfDevice returns PDF bytes directly from run(). DviDevice returns DVI bytes from run().
SvgDevice does not return bytes from run() — instead, retrieve per-page SVG byte strings
using SvgDevice.get_all_pages() after run() completes.
PDF via PdfDevice
DVI via DviDevice
SVG via SvgDevice
Choosing an Output Format
| Use Case | Device | Notes |
|---|
| Print or share | PdfDevice | Portable; most compatible |
| Web / vector graphics | SvgDevice | Per-page SVG via get_all_pages() |
| Traditional TeX pipeline | DviDevice | DVI format for downstream tools |
API Reference Summary
| Class | Description |
|---|
PdfDevice | Produce PDF output bytes |
DviDevice | Produce DVI output bytes |
SvgDevice | Produce per-page SVG output |
SvgDevice.get_all_pages() | Return list of SVG byte strings |
See Also