to_image() 编译后报错求助 #1051
jianghwjx
started this conversation in
Ask for help with specific PDFs
Replies: 2 comments 2 replies
-
使用的 python3.11 |
Beta Was this translation helpful? Give feedback.
0 replies
-
try to include pdfium file when you packaging your script using pyinstaller.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
示例代码:
import pdfplumber
pdf = pdfplumber.open('1.pdf')
for page in pdf.pages:
page_image = page.to_image()
page_image.show()
通过python直接运行没有问题,但是使用pyinstaller编译后报错如下
刚刚接触python,查了很多资料也没明白要如何处理,寻求大家帮助
Beta Was this translation helpful? Give feedback.
All reactions