# Some drawings missing from pymupdf4llm output

**URL:** <https://forum.mupdf.com/t/some-drawings-missing-from-pymupdf4llm-output/310>\
**Category:** PyMuPDF\
**Created:** [February 26, 2026, 8:35pm UTC](https://forum.mupdf.com/t/some-drawings-missing-from-pymupdf4llm-output/310 "2026-02-26T20:35:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdelaney](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rdelaney](https://forum.mupdf.com/u/rdelaney)\
**Post date:** [February 26, 2026, 8:35pm UTC](https://forum.mupdf.com/t/some-drawings-missing-from-pymupdf4llm-output/310/1 "2026-02-26T20:35:21Z")

</div>

Hello,

I’m using `pymupdf4llm` to extract PDF contents as Markdown. I’m observing that for one of my documents there are some drawings missing from the output. Specifically, Figures 4(a) and 4(b) on page 6 of my document are missing (PDF document: [2601.05047v3](https://export.arxiv.org/pdf/2601.05047v3)).

I’ve tried following the recommendations from [[Bug] A specific diagram recognized as significant is not extracted as images by pymupdf4llm.to\_markdown · Issue #296 · pymupdf/pymupdf4llm](https://github.com/pymupdf/pymupdf4llm/issues/296). If I use `page.get_drawings()` the drawings are detected correctly, as shown in the screenshot below. However, using `page.cluster_drawings()` I only get back a bbox for the entire page.

 ![image](https://canada1.discourse-cdn.com/flex004/uploads/mupdf/original/1X/3decf5040d7645c9ae4be22a5bcf197003d9f8ed.png)

Interestingly, Figures 2(a) and 2(b) on page 3, which appear very similar to Figures 4(a)-(b), are included in the output.

The code I am using:

> ```
> import pymupdf.layout
> 
> import pymupdf4llm
> 
> input_pdf = Path("./data/2601.05047v3.pdf")
> 
> md = pymupdf4llm.to_markdown(input_pdf, embed_images=True)
> 
> with open("./data/output/2601.05047v3.md", "w", encoding="utf-8") as f:
> 
> f.write(md)
> 
> ```

One more observation, I noticed if I remove the `pymupdf.layout` import, while the overall output is degraded, the missing drawings are included.

Any assistance would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Jamie\_Lemon](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.mupdf.com/jamie_lemon/32/5_2.png) [@Jamie\_Lemon](https://forum.mupdf.com/u/Jamie_Lemon)\
**Post date:** [March 2, 2026, 4:00pm UTC](https://forum.mupdf.com/t/some-drawings-missing-from-pymupdf4llm-output/310/2 "2026-03-02T16:00:28Z")

</div>

Hi @rdelaney Can you confirm the versions of PyMuPDF, PyMuPDF Layout and PyMuPDF4LLM so I can try and replicate your case?

---

<div class="post-metadata">

**Author:** ![rdelaney](https://avatars.discourse-cdn.com/v4/letter/r/838e76/32.png) [@rdelaney](https://forum.mupdf.com/u/rdelaney)\
**Post date:** [March 2, 2026, 4:25pm UTC](https://forum.mupdf.com/t/some-drawings-missing-from-pymupdf4llm-output/310/3 "2026-03-02T16:25:41Z")

</div>

Ah, it looks like I was using `pymupdf` v1.26.6. Upgrading to v1.27.1 has resolved the issue for me. Thank you!

---

<div class="post-metadata">

**Author:** ![Jamie\_Lemon](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.mupdf.com/jamie_lemon/32/5_2.png) [@Jamie\_Lemon](https://forum.mupdf.com/u/Jamie_Lemon)\
**Post date:** [March 2, 2026, 8:48pm UTC](https://forum.mupdf.com/t/some-drawings-missing-from-pymupdf4llm-output/310/4 "2026-03-02T20:48:11Z")

</div>

Super - great to hear!
