From dbd3088c10aa3d0f21b8111c2663f4f9fe7f382c Mon Sep 17 00:00:00 2001 From: Morgan Smith Date: Thu, 27 Aug 2026 17:29:05 -0400 Subject: [PATCH] docview: Fix outline generation using mupdf This script no longer works as of mupdf version 1.27.2. This new value works for mupdf version 1.28.0, 1.27.2, 1.26.8, and 1.25.2. * lisp/doc-view.el (doc-view--mutool-pdf-outline-script): Modify value to one that works. --- lisp/doc-view.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 4e28dd400ce..015e161cc89 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -1977,7 +1977,7 @@ It can be the symbol `unavailable' to indicate that outline is unavailable for the document.") (defvar doc-view--mutool-pdf-outline-script - "var document = new Document.openDocument(\"%s\", \"application/pdf\"); + "var document = new mupdf.Document.openDocument(\"%s\"); var outline = document.loadOutline(); if(!outline) quit(); function pp(outl, level){print(\"((level . \" + level + \")\");\