常见的提问

常见的提问

常见的提问

什么是许可模式?

Aspose.TeX FOSS for Python is published under the MIT license. Commercial use is permitted without fees or restrictions.

我能用它在商业产品上吗?

是的.MIT许可证允许在商业产品中使用,不需要征收版权费或归属要求 (感谢归因但无需).

我怎么安装它?

使用 pip 来从 PyPI 进行安装:

asposefoss/tex is not yet published — build from source until it ships. See the project README for build instructions.

支持哪些 Python 版本??

Python 3.10 或更高版本。.

有没有本土的依赖?

没有. Aspose.TeX FOSS for Python 是一个纯的 Python 包,不需要安装 LaTeX,也不需要 Perl 的运行时间和外部 TeX 分布.

支持哪些输出格式?

图书馆支持PDF (通过 PdfDevice), DVI (通过 DviDevice),和SVG (通过: SvgDevice) 输入是作为文件或字符串提供的TeX标记.

如何制作PDF输出?

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)

如何制作SVG输出?

from aspose_tex import TeXJob, TeXOptions, SvgDevice, StringInputSource

device = SvgDevice()
TeXJob(StringInputSource("Hello!"), device, options=TeXOptions()).run()
pages = device.get_all_pages()

我怎么读取文件的输入?

from aspose_tex import TeXJob, TeXOptions, PdfDevice, FileInputSource

pdf_bytes = TeXJob(FileInputSource("document.tex"), PdfDevice(), options=TeXOptions()).run()

有哪些已知的局限性?

库实现了TeX的子集.复杂的LaTex包和高级字体 检查该版本的操作功能. 开发者指南 详细的信息.

另请参阅

 中文