Since I feel that ghostscript is buggy on my surface laptop (at least its not working properly for doc-view in emacs with the pdf-Documents I want view; its beamer.pdf created with org-mode-beamer with complex huge pictures integrated; doc-view works but every time I want to view a slide with a complex picture, this nasty gsview64c.exe repeatedly hangs up) I would like to change to mupdf. Unfortunatly I cannot figure out how to do this.
I couldnt find any useful resources online explaining how to use mutool for pdf-rendering / pdf->png conversion.
I guess that I have to adapt doc-view.el
!?
The variable doc-view-pdfdraw-program
contains the String "mudraw"
, which definitely is not the correct name in a Windows system. This variable is defined in doc-view.el
as follows:
(defcustom doc-view-pdfdraw-program
(cond
((executable-find "pdfdraw") "pdfdraw")
(t "mudraw"))
"Name of MuPDF's program to convert PDF files to PNG."
:type 'file
:version "24.4")
SO (executable-find "pdfdraw")
evaluates to false
on my system an "mudraw"
is chosen as return vaulue, which doesnt work either on the windows platform (Win 10).
After installing mupdf on Windows the command name is definitely not mudraw
but it's mutool draw
. I tried to replace (t "mudraw")
by (t "mutool draw)
but it still doesnt work for the pdf-Files I have.
Is there anybody out there who already integrated Windows' mutool draw
as a png rederer?