easy parser OFD
Project description
easyofd
安装 pip install easyofd
项目链接: https://github.com/renoyuan/easyofd
解析ofd 文件
1 输出坐标和文本信息图片解析 文本信息包括字体,字号,颜色 坐标信息包括文本块坐标和其偏移量
2 ofd 转pdf
3 新增对内嵌字体的转换
demo
from ofdparser import OfdParser
# 转pdf输出
pdfbytes = OfdParser(ofdb64).ofd2pdf()
# print(data_dict)
# print(pdfbytes)
with open(f"pdfs/{name}.pdf","wb") as f:
f.write(pdfbytes)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easyofd-0.0.8.tar.gz
(15.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
easyofd-0.0.8-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file easyofd-0.0.8.tar.gz.
File metadata
- Download URL: easyofd-0.0.8.tar.gz
- Upload date:
- Size: 15.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
591a39099b6fa11b46d6408fff5ff6f0c367c936f8f086316bace8a325a31826
|
|
| MD5 |
ae206fca2b9c22b0fc5706ae79f59ed5
|
|
| BLAKE2b-256 |
4e1a332530ce62e746cad001cc83fc0b8697e9202ab8706a941a15315861d809
|
File details
Details for the file easyofd-0.0.8-py3-none-any.whl.
File metadata
- Download URL: easyofd-0.0.8-py3-none-any.whl
- Upload date:
- Size: 15.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23ca9044f32eef18fefcc79cd5c7a470ce5a00431d69dc56873dad79e73fa37b
|
|
| MD5 |
edce2336254fe250b4fda4ba02ea7817
|
|
| BLAKE2b-256 |
15774f50806a0a5c3170cce7218b1bc549b1616cc413827aa410880e1c4ad709
|