#'doc-view-pdf->png-converter-ghostscript)
"Function to call to convert a PDF file into a PNG file."
:type '(radio
- (function-item doc-view-pdf->png-converter-ghostscript
- :doc "Use ghostscript")
- (function-item doc-view-pdf->png-converter-mupdf
- :doc "Use mupdf")
+ (function-item :doc "Use Ghostscript"
+ doc-view-pdf->png-converter-ghostscript)
+ (function-item :doc "Use MuPDF"
+ doc-view-pdf->png-converter-mupdf)
function)
:version "24.4")
:type 'file)
(defcustom doc-view-odf->pdf-converter-function
- (cond
- ((string-match "unoconv\\'" doc-view-odf->pdf-converter-program)
- #'doc-view-odf->pdf-converter-unoconv)
- ((string-match "soffice\\'" doc-view-odf->pdf-converter-program)
- #'doc-view-odf->pdf-converter-soffice))
- "Function to call to convert a ODF file into a PDF file."
+ (if (string-suffix-p "unoconv" doc-view-odf->pdf-converter-program)
+ #'doc-view-odf->pdf-converter-unoconv
+ #'doc-view-odf->pdf-converter-soffice)
+ "Function to call to convert an ODF file into a PDF file."
:type '(radio
- (function-item doc-view-odf->pdf-converter-unoconv
- :doc "Use unoconv")
- (function-item doc-view-odf->pdf-converter-soffice
- :doc "Use LibreOffice")
+ (function-item :doc "Use LibreOffice"
+ doc-view-odf->pdf-converter-soffice)
+ (function-item :doc "Use unoconv"
+ doc-view-odf->pdf-converter-unoconv)
function)
:version "24.4")
(and doc-view-pdfdraw-program
(executable-find doc-view-pdfdraw-program)))))
((eq type 'odf)
- (and doc-view-odf->pdf-converter-program
- (executable-find doc-view-odf->pdf-converter-program)
+ (and (executable-find doc-view-odf->pdf-converter-program)
(doc-view-mode-p 'pdf)))
((eq type 'djvu)
(executable-find "ddjvu"))