]> git.eshelyaron.com Git - emacs.git/commitdiff
Disable and document 'doc-view-mupdf-use-svg' (bug#58041)
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 Jan 2023 08:26:40 +0000 (10:26 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 Jan 2023 08:26:40 +0000 (10:26 +0200)
* lisp/doc-view.el (doc-view-mupdf-use-svg): Disable by default.
* etc/NEWS: Document.  Patch by Visuwesh <visuweshm@gmail.com>.
Do not merge to master.

etc/NEWS
lisp/doc-view.el

index 08c7f8a4dd69778079b15db240113ae00ff46be3..fa28ba465f8b045139ffb5bb2a5576873a900d2c 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1636,6 +1636,20 @@ randomness as before, or to use a bag).
 *** New user option 'battery-update-functions'.
 This can be used to trigger actions based on the battery status.
 
+** DocView
+
+*** doc-view can now generate SVG images when viewing PDF files.
+If Emacs is built with SVG support, doc-view can generate SVG files
+when using MuPDF as the converter for PDF files, which generally leads
+to sharper images (especially when zooming), and allows customization
+of background and foreground color of the page via the new user
+options 'doc-view-svg-background' and 'doc-view-svg-foreground'.  To
+activate this behaviour, set 'doc-view-mupdf-use-svg' to non-nil if
+your Emacs has SVG support.  Note that, with some versions of MuPDF,
+SVG generation is known to sometimes produce SVG files that are buggy
+or can take a long time to render.
+
+
 ** Enriched Mode
 
 +++
index 7c272f52fb34c688629d362365d5563340fb7203..427da557d23125ffc2791c8bb0e651d94a03fdb8 100644 (file)
@@ -209,8 +209,8 @@ are available (see Info node `(emacs)Document View')."
           function)
   :version "24.4")
 
-(defcustom doc-view-mupdf-use-svg (image-type-available-p 'svg)
-  "Whether to use svg images for PDF files."
+(defcustom doc-view-mupdf-use-svg nil
+  "Whether to use SVG images for PDF files."
   :type 'boolean
   :version "29.1")