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)
Metadata
Release files for ofdparser 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ofdparser-0.0.8.tar.gz | 15.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ofdparser-0.0.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.7 kB
Release files / ofdparser-0.0.8.tar.gz
| Download URL | ofdparser-0.0.8.tar.gz |
|---|---|
| Size | 15.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bad0418620e55c7f13846892bc011dbd72368dbe5668b9d9d4c1e8243db10b3
|
|
BLAKE2b-256 checksum How to use checksums |
0dbe8b8928b340a6d1e09b0e0557763e65a56b28a09eff15ef09fb9fff345ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Release files / ofdparser-0.0.8-py3-none-any.whl
| Download URL | ofdparser-0.0.8-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c6c80c16752447f7b21016e5c026396fa5bef9340ef3e0f341321d613e59fae3
|
|
BLAKE2b-256 checksum How to use checksums |
6fa7afb8d91d214e1e9e6d103850a7c298175804982eedfa1b56300792d98feb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.7
|
Security for ofdparser 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.