Installation

安装

使用下面的命令为 Python 安装 Aspose.PDF FOSS。该软件包面向 Python 3.11 及更高版本,并提供编辑器自动补全的类型信息。


先决条件

要求细节
Python3.11 或更高版本
OSWindows、Linux 或 macOS
运行时依赖cryptography>=42、asn1crypto>=1.5(自动安装)
可选附加项images(Pillow),woff2(Brotli),text-layout(uharfbuzz、python-bidi、fonttools)

API 更改: 该 Document 类已更新(API_MODIFIED)。


1. 安装软件包

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

2. 安装可选的附加组件(如有需要)

当您需要 Pillow 基于的光栅图像处理、Brotli 基于的 WOFF2 字体解码或 HarfBuzz 基于的复杂文本 shaping 时,添加 images、woff2 或 text-layout 扩展:

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

后续步骤

另请参阅

 中文