renoyuan / easyofd

use python parse OFD file: finished ofd2img ofd2pdf pdf2ofd img2ofd ;(纯 python的ofd解析与pdf转换)
Apache License 2.0
168 stars 25 forks source link

OFD文件一个Cell中有多行时报错 #28

Closed victor10292 closed 6 days ago

victor10292 commented 1 week ago

您好,

将ofd转化为pdf时,有些文件会报如下的错误。 error

检查OFD文件后发现问题在于一个Cell中的文字分了两行,返回的文本是一个数组,而程序当作字典类型来处理,相关信息见附件。所以报了错。请问可以修复一下吗?谢谢。 original file

code

renoyuan commented 1 week ago

文件发我下

victor10292 commented 1 week ago

文件信息比较敏感,不是很方便发

renoyuan commented 1 week ago

数据脱敏,或fork 后维护你的版本?

victor10292 commented 1 week ago

我对ofd的规范不是很了解,我能把解开后的xml脱敏后打包给你吗?这样还能还原成ofd文件吗?Sent from my iPhoneOn Sep 4, 2024, at 16:52, 貌似大家 @.***> wrote: 数据脱敏,或fork 后维护你的版本?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

renoyuan commented 1 week ago

可以,记得xml内的结构不要动

renoyuan commented 1 week ago

已更新

victor10292 commented 6 days ago

收到,问题解决了,如果把调试用的print语句去掉就更好了。