# \#text

**URL:** https://forum.mupdf.com/tag/text/7.md

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

---

## [PyMuPDF redaction/replacement behavior changes when pymupdf4llm is imported](https://forum.mupdf.com/t/pymupdf-redaction-replacement-behavior-changes-when-pymupdf4llm-is-imported/381)

<div class="topic-metadata">

**Author:** [@EulerLeibniz](https://forum.mupdf.com/u/EulerLeibniz)\
**Replies:** 3\
**Last updated:** [October 5, 2026, 6:21pm UTC](https://forum.mupdf.com/t/pymupdf-redaction-replacement-behavior-changes-when-pymupdf4llm-is-imported/381 "2026-10-05T18:21:43Z")

</div>

Description There appears to be an interaction between pymupdf and pymupdf4llm that affects text replacement using PyMuPDF redaction annotations. The replacement code itself uses only pymupdf. It does not call pymupdf4l…

---

## [Pymupdf4llm.to\_text() ValueError: invalid literal for int() with base 10](https://forum.mupdf.com/t/pymupdf4llm-to-text-valueerror-invalid-literal-for-int-with-base-10/341)

<div class="topic-metadata">

**Author:** [@Astra](https://forum.mupdf.com/u/Astra)\
**Replies:** 3\
**Last updated:** [April 21, 2026, 2:06pm UTC](https://forum.mupdf.com/t/pymupdf4llm-to-text-valueerror-invalid-literal-for-int-with-base-10/341 "2026-04-21T14:06:25Z")

</div>

Hello, I’m getting the error ValueError: invalid literal for int() with base 10: ‘3,585’ page\_list = pymupdf4llm.to\_text( file\_path, page\_chunks=True, use\_ocr=False, ignore\_images=True, ignore\_graphics=True, …

---

## [Spaces missing after extracting text with Page.get\_text()](https://forum.mupdf.com/t/spaces-missing-after-extracting-text-with-page-get-text/308)

<div class="topic-metadata">

**Author:** [@rdelaney](https://forum.mupdf.com/u/rdelaney)\
**Replies:** 7\
**Last updated:** [February 25, 2026, 2:09pm UTC](https://forum.mupdf.com/t/spaces-missing-after-extracting-text-with-page-get-text/308 "2026-02-25T14:09:32Z")

</div>

Hello, I am experience an issue where some spaces between words appear to missing after extracting text using PyMuPDF’s Page.get\_text() method. Here is the PDF in question: https://export.arxiv.org/pdf/2601.05047v3 Th…

---

## [Issue: Hyperlink extraction from pdf to markdown is not working](https://forum.mupdf.com/t/issue-hyperlink-extraction-from-pdf-to-markdown-is-not-working/263)

<div class="topic-metadata">

**Author:** [@r\_s1](https://forum.mupdf.com/u/r_s1)\
**Replies:** 1\
**Last updated:** [January 8, 2026, 4:59pm UTC](https://forum.mupdf.com/t/issue-hyperlink-extraction-from-pdf-to-markdown-is-not-working/263 "2026-01-08T16:59:30Z")

</div>

I have the following code to convert PDF files into Markdown format, but the hyperlinks present in the PDF are not being preserved or converted correctly into Markdown. doc = pymupdf.open(file\_path) md\_text = pymupdf4ll…

---

## [PyMuPDF and using custom TrueType font](https://forum.mupdf.com/t/pymupdf-and-using-custom-truetype-font/168)

<div class="topic-metadata">

**Author:** [@Jamie\_Lemon](https://forum.mupdf.com/u/Jamie_Lemon)\
**Replies:** 2\
**Last updated:** [September 24, 2025, 3:07pm UTC](https://forum.mupdf.com/t/pymupdf-and-using-custom-truetype-font/168 "2025-09-24T15:07:57Z")

</div>

Hello @HaraldLieder ! I’m trying to use a TTF font file to render some text as follows: import pymupdf doc = pymupdf.open() n = doc.insert\_page(-1) page = doc\[0\] pontano = pymupdf.Font(fontname="Pontano Sans Regular",…
