Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用demo例子在ofd转pdf调用to_pdf报错 #13

Open
MRWER opened this issue May 18, 2024 · 1 comment
Open

使用demo例子在ofd转pdf调用to_pdf报错 #13

MRWER opened this issue May 18, 2024 · 1 comment

Comments

@MRWER
Copy link

MRWER commented May 18, 2024

image
image

查看了下传入的tag是name,self.table下没有这个属性,最后生成的pdf不正确
原ofd文件与生成的pdf文件:
tests.zip

@renoyuan
Copy link
Owner

看了下,发现两个问题 1 左上角有三个字符出现乱码 ,2 页面表格区域多解析出现一个斜线 说下结论。
1 字符乱码这个是字体问题目前没很有效方式去解决。
原因这个是ofd文件使用了自定义的内嵌字体,转化pdf无法识别为一个有效字体,且它使用自定义的编码格式,使用其他字体也无法正常去解析。
2 表格线这个有空(目前没空_-_),也许单独优化一个小版本。
你也可以fork 后去根据自身需要单独优化下
相关代码位置 easyofd\draw\draw_pdf.py -- draw_line

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants