[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#53354: 29.0.50; doc-view not handle odf->pdf->png using pdf->png cov
From: |
Shuguang Sun |
Subject: |
bug#53354: 29.0.50; doc-view not handle odf->pdf->png using pdf->png coverter |
Date: |
Wed, 19 Jan 2022 08:59:46 +0800 |
Hi All,
When I'm using doc-view to open a docx or pptx file, it convert the office file
to pdf as expected, however, when it tries to convert the derived pdf to png,
it calls the function `doc-view-ps->png-converter-ghostscript` and not the one
specified by `doc-view-pdf->png-converter-function`.
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 5b462b24f5..5e160f5dff 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -1189,7 +1189,7 @@ is named like ODF with the extension turned to pdf."
"Convert PDF-PS to PNG asynchronously."
(funcall
(pcase doc-view-doc-type
- ('pdf doc-view-pdf->png-converter-function)
+ ((or 'pdf 'odf) doc-view-pdf->png-converter-function)
('djvu #'doc-view-djvu->tiff-converter-ddjvu)
(_ #'doc-view-ps->png-converter-ghostscript))
pdf-ps png nil
Best Regards,
Shuguang Sun
In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo
version 1.17.4)
of 2022-01-17 built on lilydjwg
Repository revision: 714e11d53534416b6519396a9df5d62054731810
Repository branch: master
System Description: Manjaro Linux
Configured using:
'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
--localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
--with-sound=alsa --with-modules --without-libotf --without-m17n-flt
--without-gconf --without-gsettings --with-native-compilation
--with-xinput2 --with-pgtk --without-xaw3d --with-sound=no
--with-xwidgets --without-gpm --without-compress-install
'--program-transform-name=s/\([ec]tags\)/\1.emacs/'
'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt'
CPPFLAGS=-D_FORTIFY_SOURCE=2
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG JSON LCMS2
LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG
RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM XWIDGETS
GTK3 ZLIB
Important settings:
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=fcitx
locale-coding-system: utf-8-unix
- bug#53354: 29.0.50; doc-view not handle odf->pdf->png using pdf->png coverter,
Shuguang Sun <=