MaxKB icon indicating copy to clipboard operation
MaxKB copied to clipboard

[Bug] pdf_split_handle.py文件代码逻辑缺陷

Open JoanWheatley opened this issue 8 months ago • 4 comments

Contact Information

No response

MaxKB Version

2.61

Problem Description

pdf的都没有落图到oss当中,查看pdf_split_handle.py代码,方法传递了save_iamge方法,但在处理逻辑中并为调用该逻辑进行图片保存。导致图片类型的pdf文件上传到知识库中都是损坏图片。

Image Image

Steps to Reproduce

上传带有图片的pdf,图片都是损坏。

Image

The expected correct result

No response

Related log output


Additional Information

No response

JoanWheatley avatar Mar 17 '26 03:03 JoanWheatley

Hey! I may be able to help with this bug.

I build custom fixes for Python projects and automation systems.

If you'd like help resolving this issue quickly feel free to reach out.

Happy to take a look 👍

FocusMode-coder avatar Mar 17 '26 03:03 FocusMode-coder

Currently, images are not extracted from the PDF; only the text is extracted, so the save_image function is not needed

shaohuzhang1 avatar Mar 17 '26 06:03 shaohuzhang1

Currently, images are not extracted from the PDF; only the text is extracted, so the save_image function is not needed

知识库pdf文件不提取图片这也太不专业了吧。太demo了

JoanWheatley avatar Mar 17 '26 15:03 JoanWheatley

感谢使用。

liqiang-fit2cloud avatar Mar 18 '26 01:03 liqiang-fit2cloud