định dạng output
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 qua PdfDevice
DVI qua DviDevice
SVG qua SvgDevice
Chọn một định dạng output
| Sử dụng Case | Device | Notes |
|---|
| Print hoặc share | PdfDevice | • Tính năng; tương thích nhất |
| Web / Vector đồ họa | SvgDevice | Trang chủ SVG qua get_all_pages() |
| Công nghệ truyền thống TeX | DviDevice | Định dạng DVI cho công cụ downstream |
Tóm tắt Tham chiếu API
| Class | Description |
|---|
PdfDevice | Tạo PDF output bytes |
DviDevice | Sản xuất DVI output bytes |
SvgDevice | Sản xuất sản phẩm SVG per-page |
SvgDevice.get_all_pages() | Danh sách trở lại của SVG byte string |
See Also