easyofd icon indicating copy to clipboard operation
easyofd copied to clipboard

use python parse OFD file: ofd2img ofd2pdf pdf2ofd img2ofd ;(纯 python的ofd解析)

Results 56 easyofd issues
Sort by recently updated
recently updated
newest added

源文件.ofd,里面有盖的红章,转成pdf之后,没有红章了

![image](https://github.com/renoyuan/easyofd/assets/7991237/1948c830-70bb-48fb-b0ee-2f9d309bb3fb) ![image](https://github.com/renoyuan/easyofd/assets/7991237/c329ab3c-0f5d-4ff5-8cb7-b9909150a61b) 查看了下传入的tag是name,self.table下没有这个属性,最后生成的pdf不正确 原ofd文件与生成的pdf文件: [tests.zip](https://github.com/renoyuan/easyofd/files/15365722/tests.zip)

你好,请问xml格式的发票可以转pdf吗?

[发票-01885817.pdf](https://github.com/renoyuan/easyofd/files/14392868/-01885817.pdf) 不知道怎么修正

在Macm1中demo无法找到楷体及宋体! gpt给了个办法: from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTFont pdfmetrics.registerFont(TTFont('楷体', '楷体.ttf')) pdfmetrics.registerFont(TTFont('宋体', '宋体.ttc'))

你好,面对“测试文.ofd“这样的文件,其中第3-5页为横向,识别出的结果如测试文.pdf所示,内容会有缺失。 [测试文.pdf](https://github.com/user-attachments/files/16632638/default.pdf)

import sys, os import base64 import json from PIL import Image from easyofd.ofd import OFD def test_ofd2(file_path): """ ofd2pdf ofd2img """ # with open(r"0e7ff724-1011-4544-8464-ea6c025f6ade.ofd","rb") as f: file_prefix = os.path.splitext(os.path.split(file_path)[1])[0] with...

代码:demo.py中的 test_ofd2 错误信息:| ERROR | easyofd.draw.font_tools:register_font:96 - register_font_error: 'name' Traceback (most recent call last): File "D:\anaconda3\envs\py312\Lib\site-packages\easyofd\draw\font_tools.py", line 91, in register_font pdfmetrics.registerFont(TTFont(FontName, file_name)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\anaconda3\envs\py312\Lib\site-packages\reportlab\pdfbase\ttfonts.py", line 1192, in __init__ self.face...

``` python import base64 from easyofd.ofd import OFD # 安装包 ``` 出现No module named 'easyofd.ofd',pip list结果: easyofd 0.0.8