GNU bug report logs - #53354
29.0.50; doc-view not handle odf->pdf->png using pdf->png coverter

Previous Next

Package: emacs;

Reported by: Shuguang Sun <shuguang79 <at> qq.com>

Date: Wed, 19 Jan 2022 01:04:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 53354 in the body.
You can then email your comments to 53354 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#53354; Package emacs. (Wed, 19 Jan 2022 01:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shuguang Sun <shuguang79 <at> qq.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 19 Jan 2022 01:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Shuguang Sun <shuguang79 <at> qq.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; doc-view not handle odf->pdf->png using pdf->png coverter
Date: Wed, 19 Jan 2022 08:59:46 +0800
[Message part 1 (text/plain, inline)]
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`.

[doc-view.diff (text/x-patch, inline)]
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
[Message part 3 (text/plain, inline)]

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


Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#53354; Package emacs. (Fri, 21 Jan 2022 10:26:02 GMT) Full text and rfc822 format available.

Message #8 received at 53354 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Shuguang Sun <shuguang79 <at> qq.com>
Cc: 53354 <at> debbugs.gnu.org
Subject: Re: bug#53354: 29.0.50; doc-view not handle odf->pdf->png using
 pdf->png coverter
Date: Fri, 21 Jan 2022 11:25:37 +0100
Shuguang Sun <shuguang79 <at> qq.com> writes:

> 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`.

Thanks; applied to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug marked as fixed in version 29.1, send any further explanations to 53354 <at> debbugs.gnu.org and Shuguang Sun <shuguang79 <at> qq.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 21 Jan 2022 10:26:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Feb 2022 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 39 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.