pymupdf / RAG

RAG (Retrieval-Augmented Generation) Chatbot Examples Using PyMuPDF
https://pymupdf.readthedocs.io/en/latest/pymupdf4llm
GNU Affero General Public License v3.0
302 stars 57 forks source link

When the image is at the very end of the page, the image cannot be displayed #53

Closed rexyan closed 3 months ago

rexyan commented 3 months ago

Hello and thanks for this wonderful project.

However, I found a problem when using the image at the very end of the page, using write_images=True can not export the image

In addition, I want to improve the resolution of the picture, how to achieve it?

JorjMcKie commented 3 months ago

There is a default margin setting which leads to ignoring the top and bottom rectangles of height 50. If you set margins=0 you see everything again.

JorjMcKie commented 3 months ago

Ah I forgot to mention, that we will include a DPI parameter for setting the resolution of exported images.