Frequently Asked Questions
Frequently Asked Questions
What is the licensing model?
Aspose.TeX FOSS for Python is published under the MIT license. Commercial use is permitted without fees or restrictions.
Can I use it in commercial products?
Yes. The MIT license permits use in commercial products without royalties or attribution requirements (attribution is appreciated but not required).
How do I install it?
Install from PyPI using pip:
pip install aspose-tex>=26.5What Python versions are supported?
Python 3.10 or later.
Are there any native dependencies?
No. Aspose.TeX FOSS for Python is a pure Python package. It requires no LaTeX installation, no Perl runtime, and no external TeX distribution.
Which output formats are supported?
The library supports PDF (via PdfDevice), DVI (via DviDevice), and SVG
(via SvgDevice). Input is TeX markup supplied as a file or string.
How do I produce PDF output?
from aspose_tex import TeXJob, TeXOptions, PdfDevice, StringInputSource
pdf_bytes = TeXJob(StringInputSource("Hello!"), PdfDevice(), options=TeXOptions()).run()
with open("output.pdf", "wb") as f:
f.write(pdf_bytes)How do I produce SVG output?
from aspose_tex import TeXJob, TeXOptions, SvgDevice, StringInputSource
device = SvgDevice()
TeXJob(StringInputSource("Hello!"), device, options=TeXOptions()).run()
pages = device.get_all_pages()How do I read input from a file?
from aspose_tex import TeXJob, TeXOptions, PdfDevice, FileInputSource
pdf_bytes = TeXJob(FileInputSource("document.tex"), PdfDevice(), options=TeXOptions()).run()What are the known limitations?
The library implements a subset of TeX. Complex LaTeX packages and advanced font handling may not be fully supported in the current version. Check the Developer Guide for details.