From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 18 20:03:55 2022 Received: (at submit) by debbugs.gnu.org; 19 Jan 2022 01:03:55 +0000 Received: from localhost ([127.0.0.1]:52003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9zOF-0007dn-21 for submit@debbugs.gnu.org; Tue, 18 Jan 2022 20:03:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:42714) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9zOA-0007db-C8 for submit@debbugs.gnu.org; Tue, 18 Jan 2022 20:03:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9zO9-0000kR-30 for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2022 20:03:50 -0500 Received: from out203-205-221-239.mail.qq.com ([203.205.221.239]:56429) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9zNz-0003vK-20 for bug-gnu-emacs@gnu.org; Tue, 18 Jan 2022 20:03:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1642554199; bh=Qy1uOgsif/Q+MnaVQVCSWtCrSl/FW+PnPLWGvyCUDfQ=; h=From:To:Subject:Date; b=Lry/GQsvXJWfSkaB/i2WluhJRYRA+gAWuyFU2Y9YjgQOcGWMZcyONUAeF75TuK/sR ZMNs3yhXFSxGqV77vieHJE3WYVzHhTDcB/lff7SKZinb9VPJPArylxcYmzSn8ZNROW 6HDoHRVrZTsF8pBSOmd5yF4AkmT+Lh0TFUNxDZW0= Received: from shuguang-hpelitebook840g1 ([101.88.12.126]) by newxmesmtplogicsvrszc9.qq.com (NewEsmtp) with SMTP id CDAB253; Wed, 19 Jan 2022 09:03:13 +0800 X-QQ-mid: xmsmtpt1642554193tz1c9jp3a Message-ID: X-QQ-XMAILINFO: MSzaE5xMQTbtMud1no9wMznJ3sB/CKG+qDC1ekkJQTVQSP5c5FlrIdaT2ugZkd sr3bAnFMvnP9ldzXkjofhPgsUeXCazfG2EBhE5cd2IPhEGldNRP3BWDyc3QQgPfhTR88E76EshMr gGdefCVFbdpdEtE+wZ95SL85nCkRif9Tmk+RN+oxlYABQxWHMlKgf7wp2faZL9QGcbtjyWC1DJpq nZt6seGq8X/nNVsE127ZP6f4ge8iNX+Gw8AMQqNJPRy8ry+wK1I2qwlRf0jVUVzYCPD60WIBx6GW 17koY1T7Z7nI2mPT7zmNp4arjqi+M5lShxpphCH7JLzhV7if38TRET+JNntXzPF1YZaWAgtMrC0N nj5RRsq3gI+SufnWTOOgpV4SQJ661OSmEVqMUu6Wefl/3yJIa82BfgweOon66F9GLHxHuH2atdE2 WtC7WhBLIDeibiG44xzPtB787q84w4ht78kpTOk58MNNcuDedHXKKxreyspeR4iBT2lwtDmYyXeR Uc0fgZm19s1hlzjlmSZ1YL/QcBV6tg/X+2No/C50dx/QB3gK+kRtZZ+FLIA377Eeh5kIV8EAg7ty uaarLNs2w/2HhVFz9P/ofnSolGAGmOcCY9nD7caheeFQgrynVx41MOIb6u72lVSdqzq9Sota6myT QHaNuv2xeZz9VG17wC14r0POKdS9OnDU5p1TlM3XDLQv+wc5TPeWC59AR0gHawUSLwiHD++9wWn6 33gjw21eDZisUVVPQ0G3tqr2RvNsxRiBqD1MbsBFSlKn5X+A4yiYP0qQ16PGjrm2UZ6FgaGC4Kti 9HyV8lRC2tigrbNJv2iKUWd02g3VYSYMfnQXD0jv1VEOUmdCLnnUFEmhKXXoGfhGU= From: Shuguang Sun To: bug-gnu-emacs@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-ID: <87sftk4k1p.fsf@qq.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=203.205.221.239; envelope-from=shuguang79@qq.com; helo=out203-205-221-239.mail.qq.com X-Spam_score_int: 11 X-Spam_score: 1.1 X-Spam_bar: + X-Spam_report: (1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) --=-=-= Content-Type: text/plain 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`. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=doc-view.diff Content-Description: specify odf to use 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 --=-=-= Content-Type: text/plain 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 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 05:25:49 2022 Received: (at 53354) by debbugs.gnu.org; 21 Jan 2022 10:25:49 +0000 Received: from localhost ([127.0.0.1]:60267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAr76-0005Hw-QU for submit@debbugs.gnu.org; Fri, 21 Jan 2022 05:25:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]:32780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAr75-0005He-8b for 53354@debbugs.gnu.org; Fri, 21 Jan 2022 05:25:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5YS7LgNMJekujkzPZ3dhOwgslVeaWTrss470dZIGVIY=; b=F5EaUUoF7zQvVuJJQI2q/nqTjt b12o2JJXy8pfHkDO2WimBiOvOuaVJFexQI1n+wHzpN9hxFhtvgSkCcnEA95ck5+xcttCrxgFYZCap G6WZUGbuwjtRAs3v4q8K5k67r6F1HK+TX7ePS4FHUoLGcAsxbcEQYnZRHQg2b0KbMfQE=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAr6w-0000Ki-8z; Fri, 21 Jan 2022 11:25:40 +0100 From: Lars Ingebrigtsen To: Shuguang Sun Subject: Re: bug#53354: 29.0.50; doc-view not handle odf->pdf->png using pdf->png coverter References: X-Now-Playing: Nosdam's _Rayon_: "Colours-Heavy Load" Date: Fri, 21 Jan 2022 11:25:37 +0100 In-Reply-To: (Shuguang Sun's message of "Wed, 19 Jan 2022 08:59:46 +0800") Message-ID: <87tudxtmfy.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Shuguang Sun 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53354 Cc: 53354@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Shuguang Sun 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 21 05:25:53 2022 Received: (at control) by debbugs.gnu.org; 21 Jan 2022 10:25:53 +0000 Received: from localhost ([127.0.0.1]:60270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAr7B-0005ID-1a for submit@debbugs.gnu.org; Fri, 21 Jan 2022 05:25:53 -0500 Received: from quimby.gnus.org ([95.216.78.240]:32794) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nAr79-0005Hm-7v for control@debbugs.gnu.org; Fri, 21 Jan 2022 05:25:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=3CnsPnV7JiYGs4j0Bat3doJlVbWAlrv7lV3V5PXR/gk=; b=FbX1Q9yWB3nEcgGq8eOLezjvfs 1Wqw1uLuAo7PXiee8BN6727A9xSpdwsb4cikVckiyMzloDO7+pSK+WmZlvbaPQnfG8yeJLhs0Z1Zh pdmrckbi9Z5ovsXD5yw/ymyj3yGnoZ/wxixZ6RkgN+M72u1jIXa1tXTqXneRu32Dhtz8=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nAr71-0000L2-Dp for control@debbugs.gnu.org; Fri, 21 Jan 2022 11:25:45 +0100 Date: Fri, 21 Jan 2022 11:25:42 +0100 Message-Id: <87sfthtmft.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53354 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 53354 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 53354 29.1 quit From unknown Sun Jun 22 07:51:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 18 Feb 2022 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator