Reshaper
Reshaper
概述
Reshaper 是 Aspose.PDF FOSS 中用于 Python 的一个类。
在文本编辑期间进行复杂脚本替换的 shaping 策略。
此类为 Python 程序中的 Reshaper 对象声明了 3 个方法。可用的方法包括:__init__、inline_codes、request_author。在安装了 Aspose.PDF FOSS for Python 包之后,所有公共成员对任何 Python 应用程序均可访问。属性:author_requests、can_author。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
can_author | `` | 读取 | 获取 can 作者。 |
author_requests | list[_ReshapeAuthorRequest] | 读取 | 获取作者请求。 |
方法
| 签名 | 描述 |
|---|---|
__init__(can_author: bool, budget: _LoadBudget) | Calls init(can_author, budget) 在此 Reshaper 实例上。 |
inline_codes(replacement: str, metric: Any) → `bytes | None` |
| `request_author(replacement: str, origin_trm: tuple | None, pen_x: float, pen_y: float, size: float)→bool` |