Installation

Installation

Aspose.TeX FOSS for Python is distributed as a pure Python package on PyPI. It has no native extensions, no LaTeX installation requirement, and no Perl runtime dependency. Install it using the pip package manager on Windows, macOS, or Linux. The package works with Python 3.10 and later and is compatible with virtual environments and container-based deployments.


Prerequisites

RequirementDetail
Python3.10 or later
OSWindows, macOS, ลินักซ์
Dependenciesไม่มี (Python สด)

ติดตั้งจาก PyPI

ใช้คําสั่งต่อไปนี้เพื่อติดตั้งเวอร์ชั่นล่าสุด:

git clone https://github.com/aspose-tex-foss/Aspose.TeX-FOSS-for-Python.git
cd Aspose.TeX-FOSS-for-Python
pip install -e .

เพื่อการพิงเวอร์ชั่นเฉพาะ:

git clone https://github.com/aspose-tex-foss/Aspose.TeX-FOSS-for-Python.git
cd Aspose.TeX-FOSS-for-Python
pip install -e .

ยืนยันการติดตั้ง

ยืนยันว่าการติดตั้งแพ็คเกจถูกต้อง:

import aspose_tex
print(aspose_tex.__version__)

การทดสอบควันรวดเร็ว

from aspose_tex import TeXJob, TeXOptions, PdfDevice, StringInputSource

pdf = TeXJob(StringInputSource("Hello!"), PdfDevice(), options=TeXOptions()).run()
print("OK, PDF bytes:", len(pdf))

ขั้นตอนต่อไป

ดูเช่นกัน

 ภาษาไทย