Utgångsformat
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
Välj ett utgångsformat
| Används av fallet | Device | Noter |
|---|
| Print eller delning | PdfDevice | Bärbar; mest kompatibel |
| Webb / vector grafik | SvgDevice | För sidan SVG via get_all_pages() |
| Traditionell TeX-rör | DviDevice | DVI-format för downstream verktyg |
API Referens sammanfattning
| Class | Beskrivning |
|---|
PdfDevice | Produktera PDF-utgångsbyten |
DviDevice | Produktion av DVI utgångsbyten |
SvgDevice | Produktion per sida SVG-utgång |
SvgDevice.get_all_pages() | Återvändslista av SVG byte strängar |
Se även