Formats de sortida
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 a través de PdfDevice
DVI a través de DviDevice
SVG a través de SvgDevice
Escollir un format de sortida
| Cas d’ús | Dispositiu | Notes |
|---|
| Imprimeix o comparteix | PdfDevice | Portàtil; més compatible. |
| Web / gràfics vectorials | SvgDevice | SVG per pàgina via get_all_pages() |
| Pipeline TeX tradicional | DviDevice | Format DVI per a eines descendents |
Resum de referència d’API
| Classe | Descripció |
|---|
PdfDevice | Produir bytes de sortida PDF |
DviDevice | Produir bytes de sortida DVI |
SvgDevice | Produir sortida SVG per pàgina |
SvgDevice.get_all_pages() | Retorn de la llista d’escripcions SVG |
Veure també