ofdparser
Project description
pyofdpaerser
安装 pip install ofdparser
项目链接: https://github.com/renoyuan/pyofdpaerser
解析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
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.8.tar.gz
(15.2 kB
view details)
Built Distribution
ofdparser-0.0.8-py3-none-any.whl
(15.5 kB
view details)
File details
Details for the file ofdparser-0.0.8.tar.gz
.
File metadata
- Download URL: ofdparser-0.0.8.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bad0418620e55c7f13846892bc011dbd72368dbe5668b9d9d4c1e8243db10b3 |
|
MD5 | 3db60c70cbe93006faa2c7cf4270048c |
|
BLAKE2b-256 | 0dbe8b8928b340a6d1e09b0e0557763e65a56b28a09eff15ef09fb9fff345ed5 |
Provenance
File details
Details for the file ofdparser-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: ofdparser-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.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6c80c16752447f7b21016e5c026396fa5bef9340ef3e0f341321d613e59fae3 |
|
MD5 | ff4bc4fb797f2e8f1d58eaa3b0353333 |
|
BLAKE2b-256 | 6fa7afb8d91d214e1e9e6d103850a7c298175804982eedfa1b56300792d98feb |