Variable: doc-view-ghostscript-program
doc-view-ghostscript-program is a customizable variable defined in
doc-view.el.gz.
Value
"gs"
Documentation
Program to convert PS and PDF files to PNG.
This variable was added, or its default value changed, in Emacs 27.1.
Source Code
;; Defined in /usr/src/emacs/lisp/doc-view.el.gz
(defcustom doc-view-ghostscript-program
(cond
((memq system-type '(windows-nt ms-dos))
(cond
;; Windows Ghostscript
((executable-find "gswin64c") "gswin64c")
((executable-find "gswin32c") "gswin32c")
;; The GS wrapper coming with TeX Live
((executable-find "rungs") "rungs")
;; The MikTeX builtin GS Check if mgs is functional for external
;; non-MikTeX apps. Was available under:
;; http://blog.miktex.org/post/2005/04/07/Starting-mgsexe-at-the-DOS-Prompt.aspx
((and (executable-find "mgs")
(= 0 (shell-command "mgs -q -dNODISPLAY -c quit")))
"mgs")))
(t "gs"))
"Program to convert PS and PDF files to PNG."
:type 'file
:version "27.1")