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

对于pdf解析时报“pymupdf.mupdf.FzErrorSyntax错除了手动浏览器打印保存,是否能通过代码自动化解决这个问题,或者浏览器打印保存是否有脚本自动实现 #1377

Closed
liy-a opened this issue Dec 30, 2024 · 8 comments
Labels
question Further information is requested

Comments

@liy-a
Copy link

liy-a commented Dec 30, 2024

Description of the bug | 错误描述

对于pdf解析时报“pymupdf.mupdf.FzErrorSyntax错之前给的方案是手动浏览器打印保存,是否能通过代码自动化解决这个问题,或者浏览器打印保存是否有脚本自动实现

How to reproduce the bug | 如何复现

1.上传pdf 12352684.pdf
2. 运行命令 magic-pdf -p 12352684.pdf -o out_re
12352684.pdf

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

0.7.x

Device mode | 设备模式

cuda

@liy-a liy-a added the bug Something isn't working label Dec 30, 2024
@myhloli
Copy link
Collaborator

myhloli commented Dec 30, 2024

已经解决了,更新到最新版即可。

@myhloli myhloli closed this as completed Dec 30, 2024
@liy-a
Copy link
Author

liy-a commented Jan 2, 2025

好的,请问进行版本升级是有相关的命令,还是需要下载最新版本的代码重新安装

@myhloli
Copy link
Collaborator

myhloli commented Jan 2, 2025

在当前的环境再执行一次安装命令即可

@liy-a
Copy link
Author

liy-a commented Jan 2, 2025

您说的安装命令是指下面这个么:
pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com

那对于 模型权重那块需要重新下载更新么

@myhloli
Copy link
Collaborator

myhloli commented Jan 2, 2025

pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com/

是这个,如果您是从较早版本升上来是需要更新模型的,具体方法请参考readme中模型下载部分的文档

@liy-a
Copy link
Author

liy-a commented Jan 2, 2025

您说的是模型更新教程是参考下面图片中的部分么:
<img width="1066" alt="image" src="https://github.com/user-attachments/assets/c2ff2ef4-6391-42b4-b383-b7989832d6d3" /
截屏2025-01-02 11 22 42

@myhloli
Copy link
Collaborator

myhloli commented Jan 2, 2025

是这个

@liy-a
Copy link
Author

liy-a commented Jan 2, 2025

好的,谢谢您耐心的指导~

@dt-yy dt-yy added question Further information is requested and removed bug Something isn't working labels Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants