# Latest

**URL:** https://forum.mupdf.com/latest.md?page=2

[Latest](https://forum.mupdf.com/latest.md) · [Categories](https://forum.mupdf.com/categories.md) · [Tags](https://forum.mupdf.com/tags.md)

**Page:** 3

---

## [MuPDF.js - 1.26.4](https://forum.mupdf.com/t/mupdf-js-1-26-4/239)

<div class="topic-metadata">

**Author:** [@pedrogil](https://forum.mupdf.com/u/pedrogil)\
**Replies:** 5\
**Last updated:** [January 7, 2026, 3:54pm UTC](https://forum.mupdf.com/t/mupdf-js-1-26-4/239 "2026-01-07T15:54:44Z")

</div>

Hello, I would like to ask about the status of MuPDF.js. Are there any plans to update it to align with the latest MuPDF release (version 1.27.0)? If so, could you share an approximate timeline or roadmap? Thank yo…

---

## [Bug: pymupdf4llm: mis-interpreted layout and IndexError on specific pages (insurance policy PDF)](https://forum.mupdf.com/t/bug-pymupdf4llm-mis-interpreted-layout-and-indexerror-on-specific-pages-insurance-policy-pdf/258)

<div class="topic-metadata">

**Author:** [@yisiang.fu](https://forum.mupdf.com/u/yisiang.fu)\
**Replies:** 5\
**Last updated:** [January 6, 2026, 12:50pm UTC](https://forum.mupdf.com/t/bug-pymupdf4llm-mis-interpreted-layout-and-indexerror-on-specific-pages-insurance-policy-pdf/258 "2026-01-06T12:50:18Z")

</div>

Hello, The announcement on GitHub issue #295 directed me here. I hope this is the right place to report bugs. Background Context I am trying to use pymupdf4llm to parse an insurance policy document. This is a typical l…

---

## [OCR disabled because OpenCV not installed](https://forum.mupdf.com/t/ocr-disabled-because-opencv-not-installed/238)

<div class="topic-metadata">

**Author:** [@MW\_UK](https://forum.mupdf.com/u/MW_UK)\
**Replies:** 16\
**Last updated:** [January 6, 2026, 12:09pm UTC](https://forum.mupdf.com/t/ocr-disabled-because-opencv-not-installed/238 "2026-01-06T12:09:41Z")

</div>

I’m trying to extract clean text from unstructured PDF using PyMuPDF4LLM (and layout) with Python in a data bricks environment and I keep getting the error “OCR disabled because OpenCV not installed”. But it is installe…

---

## [Why not add xref to the image information returned by page.get\_image\_info()?](https://forum.mupdf.com/t/why-not-add-xref-to-the-image-information-returned-by-page-get-image-info/251)

<div class="topic-metadata">

**Author:** [@Marvin](https://forum.mupdf.com/u/Marvin)\
**Replies:** 4\
**Last updated:** [January 4, 2026, 5:31pm UTC](https://forum.mupdf.com/t/why-not-add-xref-to-the-image-information-returned-by-page-get-image-info/251 "2026-01-04T17:31:37Z")

</div>

Can xref be added to the image information returned by page.get\_image\_info()? This way, we can determine which images need to be extracted based on their positions, or match the extracted images with their location infor…

---

## [Bug: pymupdf4llm: Hyphenated words not joined when split across text blocks](https://forum.mupdf.com/t/bug-pymupdf4llm-hyphenated-words-not-joined-when-split-across-text-blocks/257)

<div class="topic-metadata">

**Author:** [@ulrik](https://forum.mupdf.com/u/ulrik)\
**Replies:** 1\
**Last updated:** [January 4, 2026, 5:28pm UTC](https://forum.mupdf.com/t/bug-pymupdf4llm-hyphenated-words-not-joined-when-split-across-text-blocks/257 "2026-01-04T17:28:43Z")

</div>

When using pymupdf4llm.to\_markdown(), I noticed that hyphenated words spanning two text blocks are not joined correctly. The trailing hyphen is removed, but the word parts remain separated. Example: PDF contains: und…

---

## [MuPDF.NET on Discord](https://forum.mupdf.com/t/mupdf-net-on-discord/256)

<div class="topic-metadata">

**Author:** [@Jamie\_Lemon](https://forum.mupdf.com/u/Jamie_Lemon)\
**Replies:** 0\
**Last updated:** [January 2, 2026, 5:35pm UTC](https://forum.mupdf.com/t/mupdf-net-on-discord/256 "2026-01-02T17:35:13Z")

</div>

If you prefer immediate chat, then we are on Discord! See: Artifex

---

## [PyMuPDF on Discord](https://forum.mupdf.com/t/pymupdf-on-discord/255)

<div class="topic-metadata">

**Author:** [@Jamie\_Lemon](https://forum.mupdf.com/u/Jamie_Lemon)\
**Replies:** 0\
**Last updated:** [January 2, 2026, 5:33pm UTC](https://forum.mupdf.com/t/pymupdf-on-discord/255 "2026-01-02T17:33:07Z")

</div>

If you prefer immediate chat, then we are on Discord! See: Artifex

---

## [Poor performance with the Redact panel open and many annotations/redactions](https://forum.mupdf.com/t/poor-performance-with-the-redact-panel-open-and-many-annotations-redactions/247)

<div class="topic-metadata">

**Author:** [@39rc](https://forum.mupdf.com/u/39rc)\
**Replies:** 1\
**Last updated:** [December 17, 2025, 5:04pm UTC](https://forum.mupdf.com/t/poor-performance-with-the-redact-panel-open-and-many-annotations-redactions/247 "2025-12-17T17:04:07Z")

</div>

Hi, I’m finding that when you have many redactions on a pdf with the redaction panel open the loading of the main pdf is very slow. I’ve linked a youtube video demoing this behaviour: https://youtu.be/7LIbY2YexrE Here…

---

## [Using insert\_text() with a subsetted font](https://forum.mupdf.com/t/using-insert-text-with-a-subsetted-font/229)

<div class="topic-metadata">

**Author:** [@Lukes](https://forum.mupdf.com/u/Lukes)\
**Replies:** 1\
**Last updated:** [December 11, 2025, 12:38am UTC](https://forum.mupdf.com/t/using-insert-text-with-a-subsetted-font/229 "2025-12-11T00:38:18Z")

</div>

Hi, I think the title doesn’t capture my situation all that well. And apologies in advance for a somewhat long post. I am writing a little python script that takes as input a larger PDF with a bunch of songs (say 300…

---

## [Removing the 'Redact' button](https://forum.mupdf.com/t/removing-the-redact-button/205)

<div class="topic-metadata">

**Author:** [@39rc](https://forum.mupdf.com/u/39rc)\
**Replies:** 3\
**Last updated:** [December 8, 2025, 4:15pm UTC](https://forum.mupdf.com/t/removing-the-redact-button/205 "2025-12-08T16:15:57Z")

</div>

Is there a way remove the ‘Redact’ button without removing the toolbar itself? The reason why i’d like this is because I want to add a new button to the toolbar but get rid of the ‘Redact’ button. Thanks

---

## [BUG: parameter page\_chunks is ignored when passed to pymupdf4llm.to\_markdown](https://forum.mupdf.com/t/bug-parameter-page-chunks-is-ignored-when-passed-to-pymupdf4llm-to-markdown/227)

<div class="topic-metadata">

**Author:** [@qbuchanan](https://forum.mupdf.com/u/qbuchanan)\
**Replies:** 2\
**Last updated:** [December 8, 2025, 3:18pm UTC](https://forum.mupdf.com/t/bug-parameter-page-chunks-is-ignored-when-passed-to-pymupdf4llm-to-markdown/227 "2025-12-08T15:18:45Z")

</div>

When calling pymupdf4llm.to\_markdown(doc, headers=keep\_headers, footers=keep\_footers, page\_chunks=ret\_page\_chunks) the page\_chunks flag is ignored. Looking at the source in venv/lib/python3.11/site-packages/pymupdf4ll…

---

## [BUG: pymupdf.mupdf.FzErrorArgument: code=4: Invalid bandwriter header dimensions/setup](https://forum.mupdf.com/t/bug-pymupdf-mupdf-fzerrorargument-code-4-invalid-bandwriter-header-dimensions-setup/217)

<div class="topic-metadata">

**Author:** [@qbuchanan](https://forum.mupdf.com/u/qbuchanan)\
**Replies:** 3\
**Last updated:** [December 6, 2025, 7:25pm UTC](https://forum.mupdf.com/t/bug-pymupdf-mupdf-fzerrorargument-code-4-invalid-bandwriter-header-dimensions-setup/217 "2025-12-06T19:25:15Z")

</div>

While processing a set of PDFs we are receiving the following error pymupdf.mupdf.FzErrorArgument: code=4: Invalid bandwriter header dimensions/setup please let me know if you have any questions. The documents are of …

---

## [BUG: list index out of range using new layout feature](https://forum.mupdf.com/t/bug-list-index-out-of-range-using-new-layout-feature/209)

<div class="topic-metadata">

**Author:** [@marcelrassinger](https://forum.mupdf.com/u/marcelrassinger)\
**Replies:** 16\
**Last updated:** [December 11, 2025, 5:14pm UTC](https://forum.mupdf.com/t/bug-list-index-out-of-range-using-new-layout-feature/209 "2025-12-11T17:14:39Z")

</div>

I am not allowed to share the document, but maybe the exception helps as well: task\_agent/document\_processing/parser/pymupdf\_reader.py:71: in to\_markdown md = pymupdf4llm.to\_markdown( ../../../anaconda3/envs/task-agen…

---

## [Allowing the user to add custom elements to the PDF and retrieve the coordinates](https://forum.mupdf.com/t/allowing-the-user-to-add-custom-elements-to-the-pdf-and-retrieve-the-coordinates/218)

<div class="topic-metadata">

**Author:** [@PieterClaerhout](https://forum.mupdf.com/u/PieterClaerhout)\
**Replies:** 6\
**Last updated:** [December 5, 2025, 3:17pm UTC](https://forum.mupdf.com/t/allowing-the-user-to-add-custom-elements-to-the-pdf-and-retrieve-the-coordinates/218 "2025-12-05T15:17:44Z")

</div>

Imagine you want to use the PDF viewer to show PDF files on which a user can add custom elements (e.g. signatures on a document that needs to be signed). That would require specific functionality: Allowing to add a ne…

---

## [Pymupdf4llm parsing takes excessively long time](https://forum.mupdf.com/t/pymupdf4llm-parsing-takes-excessively-long-time/210)

<div class="topic-metadata">

**Author:** [@JasmineGMT](https://forum.mupdf.com/u/JasmineGMT)\
**Replies:** 2\
**Last updated:** [December 4, 2025, 2:57pm UTC](https://forum.mupdf.com/t/pymupdf4llm-parsing-takes-excessively-long-time/210 "2025-12-04T14:57:11Z")

</div>

Hi, I use pymupdf4llm to parse the content of some pdfs. In most cases it works great, however, I found a few documents that take exceedingly long time to be parsed, and I cannot find a reason for it as they contain mo…

---

## [BUG: pymupdf4llm list index out of range in document\_layout.py (2)](https://forum.mupdf.com/t/bug-pymupdf4llm-list-index-out-of-range-in-document-layout-py-2/216)

<div class="topic-metadata">

**Author:** [@robvd](https://forum.mupdf.com/u/robvd)\
**Replies:** 3\
**Last updated:** [December 4, 2025, 8:19am UTC](https://forum.mupdf.com/t/bug-pymupdf4llm-list-index-out-of-range-in-document-layout-py-2/216 "2025-12-04T08:19:48Z")

</div>

I stumbled on another list index out of range. When parsing a large file using pymupdf.layout+pymupdf4llm the following traceback is encountered: Traceback (most recent call last): File "/usr/local/lib/python3.10/site…

---

## [Check for page.find\_tables returning None](https://forum.mupdf.com/t/check-for-page-find-tables-returning-none/215)

<div class="topic-metadata">

**Author:** [@Oege\_Dijk](https://forum.mupdf.com/u/Oege_Dijk)\
**Replies:** 1\
**Last updated:** [December 3, 2025, 9:38pm UTC](https://forum.mupdf.com/t/check-for-page-find-tables-returning-none/215 "2025-12-03T21:38:27Z")

</div>

Hi there, I am running into an issue where we modify the pdf (deleting text) before running extraction, and this seems to corrupt the pdf in a way that crashes pymupdf4llm, because page.find\_tables() returns None instea…

---

## [BUG: pymupdf4llm list index out of range in document\_layout.py](https://forum.mupdf.com/t/bug-pymupdf4llm-list-index-out-of-range-in-document-layout-py/207)

<div class="topic-metadata">

**Author:** [@robvd](https://forum.mupdf.com/u/robvd)\
**Replies:** 9\
**Last updated:** [December 2, 2025, 4:06pm UTC](https://forum.mupdf.com/t/bug-pymupdf4llm-list-index-out-of-range-in-document-layout-py/207 "2025-12-02T16:06:08Z")

</div>

When parsing the attached file using pymupdf.layout+pymupdf4llm the following traceback is encountered: Traceback (most recent call last): File "/usr/local/lib/python3.10/site-packages/pymupdf4llm/\_\_init\_\_.py", line 9…

---

## [BUG: pymupdf4llm parse\_document() produces KeyError when document.use\_ocr is False](https://forum.mupdf.com/t/bug-pymupdf4llm-parse-document-produces-keyerror-when-document-use-ocr-is-false/204)

<div class="topic-metadata">

**Author:** [@Callum\_Davidson](https://forum.mupdf.com/u/Callum_Davidson)\
**Replies:** 2\
**Last updated:** [November 30, 2025, 8:56am UTC](https://forum.mupdf.com/t/bug-pymupdf4llm-parse-document-produces-keyerror-when-document-use-ocr-is-false/204 "2025-11-30T08:56:01Z")

</div>

Hi, Raised this as an issue on the github page before I saw the pinned notice to post here. Apologies. Below is what I posted here: Parsing a document results in a key error when ocr is disabled. See below traceback fr…

---

## [Diferent result between pymupdf and mupdf\_net](https://forum.mupdf.com/t/diferent-result-between-pymupdf-and-mupdf-net/206)

<div class="topic-metadata">

**Author:** [@Fabio\_Nascimento](https://forum.mupdf.com/u/Fabio_Nascimento)\
**Replies:** 7\
**Last updated:** [November 28, 2025, 5:58pm UTC](https://forum.mupdf.com/t/diferent-result-between-pymupdf-and-mupdf-net/206 "2025-11-28T17:58:37Z")

</div>

Hi there! I am converting a prototype (made using pymupdf to mupdf\_net, and using the same commands (page.GetDrawings) and re-drawing using the same strategy in python and C#, I got different results… Anyone have any clu…

---

## [Local WebViewer, no expiry, no key](https://forum.mupdf.com/t/local-webviewer-no-expiry-no-key/208)

<div class="topic-metadata">

**Author:** [@Jamie\_Lemon](https://forum.mupdf.com/u/Jamie_Lemon)\
**Replies:** 0\
**Last updated:** [November 27, 2025, 2:40pm UTC](https://forum.mupdf.com/t/local-webviewer-no-expiry-no-key/208 "2025-11-27T14:40:50Z")

</div>

Please note, you can now try WebViewer locally without a key with release 0.11.0! No expiry, no trial key required until you deploy. See CHANGELOG - MuPDF WebViewer for more. :slightly\_smiling\_face:

---

## [Adding \`removeEventListener\`](https://forum.mupdf.com/t/adding-removeeventlistener/192)

<div class="topic-metadata">

**Author:** [@Ryan\_Kavanagh](https://forum.mupdf.com/u/Ryan_Kavanagh)\
**Replies:** 2\
**Last updated:** [November 27, 2025, 2:33pm UTC](https://forum.mupdf.com/t/adding-removeeventlistener/192 "2025-11-27T14:33:16Z")

</div>

Could we possibly have a removeEventListener function for the MuPDFWebVieweras we want to add event listeners to the webviewer but we also need to perform cleanup at times (without removing destroying the whole webviewer…

---

## [Support for running locally on a \*.test domain](https://forum.mupdf.com/t/support-for-running-locally-on-a-test-domain/199)

<div class="topic-metadata">

**Author:** [@PieterClaerhout](https://forum.mupdf.com/u/PieterClaerhout)\
**Replies:** 4\
**Last updated:** [November 27, 2025, 2:31pm UTC](https://forum.mupdf.com/t/support-for-running-locally-on-a-test-domain/199 "2025-11-27T14:31:36Z")

</div>

Hi, I’m testing the MuPDF WebViewer in a PHP Laravel application. I’m using Herd to run the site locally. What is typical about my setup is that the local domain it runs on is a \*.test domain. It seems that these domain…

---

## [How to debug - no insert\_text found in new pdf](https://forum.mupdf.com/t/how-to-debug-no-insert-text-found-in-new-pdf/201)

<div class="topic-metadata">

**Author:** [@edzob](https://forum.mupdf.com/u/edzob)\
**Replies:** 8\
**Last updated:** [November 20, 2025, 10:19pm UTC](https://forum.mupdf.com/t/how-to-debug-no-insert-text-found-in-new-pdf/201 "2025-11-20T22:19:00Z")

</div>

Hi, my goal is to write text to a pdf. When I open the pdf I only see a white page. I think I have an error in my setup and not in my code. Below a minimal working example. Q: How can I debug this, to find out what i…

---

## [Flatten the shapes](https://forum.mupdf.com/t/flatten-the-shapes/195)

<div class="topic-metadata">

**Author:** [@ever4andrews](https://forum.mupdf.com/u/ever4andrews)\
**Replies:** 6\
**Last updated:** [November 20, 2025, 1:28pm UTC](https://forum.mupdf.com/t/flatten-the-shapes/195 "2025-11-20T13:28:05Z")

</div>

I have PDF having comments/markups like different shapes or text. Now i want to flatten/render the shapes which are available in the PDF. but preserving the text as it is no flatten. in comments panel also no need to sho…

---

## [Pymupdf4llm: performance](https://forum.mupdf.com/t/pymupdf4llm-performance/200)

<div class="topic-metadata">

**Author:** [@robvd](https://forum.mupdf.com/u/robvd)\
**Replies:** 3\
**Last updated:** [November 20, 2025, 10:23am UTC](https://forum.mupdf.com/t/pymupdf4llm-performance/200 "2025-11-20T10:23:15Z")

</div>

The fix for ValueError: min() arg is an empty sequence · Issue #319 · pymupdf/pymupdf4llm · GitHub also mentioned fixing a performance issue. Although the performance for the file attached to that issue is now acceptable…

---

## [Confusion around editing redactions](https://forum.mupdf.com/t/confusion-around-editing-redactions/202)

<div class="topic-metadata">

**Author:** [@39rc](https://forum.mupdf.com/u/39rc)\
**Replies:** 1\
**Last updated:** [November 19, 2025, 11:19pm UTC](https://forum.mupdf.com/t/confusion-around-editing-redactions/202 "2025-11-19T23:19:26Z")

</div>

Hi, I’m trying to use the redaction API in the webviewer but i’m having some confusion. In the docs, set’s api is defined as follows: set(config: { redactions: Redaction\[\] }). However, when I go to run this function …

---

## [How to verify if the PyMuPDF Pro license is applied?](https://forum.mupdf.com/t/how-to-verify-if-the-pymupdf-pro-license-is-applied/187)

<div class="topic-metadata">

**Author:** [@PS\_JSH](https://forum.mupdf.com/u/PS_JSH)\
**Replies:** 3\
**Last updated:** [November 14, 2025, 1:28pm UTC](https://forum.mupdf.com/t/how-to-verify-if-the-pymupdf-pro-license-is-applied/187 "2025-11-14T13:28:09Z")

</div>

Hello, I’d like to ask how to verify whether the PyMuPDF Pro license is applied. I’d like to check it at the beginning of the source code execution.

---

## [PDF File Size Reduction](https://forum.mupdf.com/t/pdf-file-size-reduction/28)

<div class="topic-metadata">

**Author:** [@HaraldLieder](https://forum.mupdf.com/u/HaraldLieder)\
**Replies:** 2\
**Last updated:** [November 8, 2025, 11:16am UTC](https://forum.mupdf.com/t/pdf-file-size-reduction/28 "2025-11-08T11:16:40Z")

</div>

Optimizing PDF File Size with PyMuPDF: Three Essential Techniques In today’s fast-paced workflows, bulky PDFs can become a bottleneck — slowing down email attachments, consuming valuable storage, and frustrating mobile …

---

## [Storing the API key](https://forum.mupdf.com/t/storing-the-api-key/185)

<div class="topic-metadata">

**Author:** [@39rc](https://forum.mupdf.com/u/39rc)\
**Replies:** 1\
**Last updated:** [October 28, 2025, 2:46pm UTC](https://forum.mupdf.com/t/storing-the-api-key/185 "2025-10-28T14:46:49Z")

</div>

Hi, In the docs the api key is stored as a string in the javascript files. Is this the official way to do it? I’m concerned that a user may read the js bundle and take the API key. Thanks

[Previous page](https://forum.mupdf.com/latest.md?page=1)

[Next page](https://forum.mupdf.com/latest.md?page=3)
