CidTextCodec
CidTextCodec
ภาพรวม
CidTextCodec เป็นคลาสใน Aspose.PDF FOSS สำหรับ Python.
โค้ดเดโคเดอร์สำหรับสตริงการแสดงของฟอนต์คอมโพสิต (Type0).
คลาสนี้มีวิธีการ 4 วิธีสำหรับการทำงานกับอ็อบเจ็กต์ CidTextCodec ในโปรแกรม Python. วิธีที่พร้อมใช้งาน ได้แก่: __init__, decode_units, decoded_text, encode. สมาชิกสาธารณะทั้งหมดสามารถเข้าถึงได้โดยแอปพลิเคชัน Python ใด ๆ หลังจากติดตั้งแพ็กเกจ Aspose.PDF FOSS สำหรับ Python. คุณสมบัติ: code_to_text.
คุณสมบัติ
| ชื่อ | ประเภท | การเข้าถึง | คำอธิบาย |
|---|---|---|---|
code_to_text | `` | อ่าน | รับรหัสเป็นข้อความ. |
วิธีการ
| ลายเซ็น | คำอธิบาย |
|---|---|
| `init(code_to_text: Mapping[bytes, str], codespaces: Iterable[tuple[bytes, bytes]] | None, valid_codes: Mapping[bytes, Any] |
| `decode_units(raw: bytes, budget: _LoadBudget | None)→list[tuple[int, int, str |
| `decoded_text(code: bytes | None)→str |
encode(text: str) → `bytes | None` |