ofdparser
Project description
pyofdpaerser
安装 pip install pyofdpaerser
项目链接: https://github.com/renoyuan/pyofdpaerser
解析ofd 文件
1 输出坐标和文本信息图片解析 文本信息包括字体,字号,颜色 坐标信息包括文本块坐标和其偏移量
2 ofd 转pdf
3 新增对内嵌字体的转换
demo
from pyofdpaerser,ofdpaser 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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ofdparser-0.0.7.tar.gz
(14.1 kB
view details)
Built Distribution
ofdparser-0.0.7-py3-none-any.whl
(14.4 kB
view details)
File details
Details for the file ofdparser-0.0.7.tar.gz
.
File metadata
- Download URL: ofdparser-0.0.7.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fea1919344e2c8437e69e476d9e603be2328100f76de697e7be495edf953e35 |
|
MD5 | 9488cc82727324726ce0fe66e0cb3452 |
|
BLAKE2b-256 | 9db72b2dd61244334a7b4496e3e9559d23ff320abdbe268c1048c126a30f0925 |
Provenance
File details
Details for the file ofdparser-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: ofdparser-0.0.7-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e34e75471058a3bb559a56ae192a3ac947b34b684611cb34a77b1ef9ebac64e6 |
|
MD5 | f8328f994be358d8d43e3eb2cbe6624e |
|
BLAKE2b-256 | 960affc49a939100e2ba280d73f641ccb24dfdf22677d8d72b4b85576a56936e |