Features Overview
Features Overview
Aspose.TeX FOSS for Python is a pure-Python TeX typesetting engine. This page summarises its capabilities.
TeX Processing
The library processes TeX markup through a TeXJob object:
from aspose_tex import TeXJob, TeXOptions, PdfDevice, StringInputSource
job = TeXJob(StringInputSource("Hello!"), PdfDevice(), options=TeXOptions())
pdf_bytes = job.run()Output Formats
| Format | Device Class | Notes |
|---|---|---|
PdfDevice | Returns bytes from run() | |
| DVI | DviDevice | Returns bytes from run() |
| SVG | SvgDevice | Pages retrieved via get_all_pages() |
Input Sources
| Source | Class | Notes |
|---|---|---|
| File | FileInputSource | Reads a .tex file from disk |
| String | StringInputSource | Accepts raw TeX markup as Python string |
No External Dependencies
Aspose.TeX FOSS for Python requires no LaTeX installation, no Perl runtime, and no external TeX distribution. The engine is entirely self-contained.
Tips
- Use
StringInputSourcefor dynamically generated TeX markup. - Use
FileInputSourcefor existing.texfiles. TeXOptions()uses sensible defaults; no configuration is required for most use cases.