From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: No NEWS entry for doc-view-mupdf-use-svg (Emacs 30.0.91 feedback) Date: Sat, 21 Sep 2024 01:04:43 +0530 Message-ID: <87frpuf7ak.fsf@gmail.com> References: <87cyky43fb.fsf@ice9.digital> <86setu5f85.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="690"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Morgan Willcock , Tassilo Horn , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 20 21:35:49 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1srjPx-000AUt-Mx for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Sep 2024 21:35:49 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srjP4-00005d-EX; Fri, 20 Sep 2024 15:34:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srjP2-00005S-6T for emacs-devel@gnu.org; Fri, 20 Sep 2024 15:34:52 -0400 Original-Received: from mail-pf1-x442.google.com ([2607:f8b0:4864:20::442]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srjP0-0005Pb-G1; Fri, 20 Sep 2024 15:34:51 -0400 Original-Received: by mail-pf1-x442.google.com with SMTP id d2e1a72fcca58-718e11e4186so2272928b3a.2; Fri, 20 Sep 2024 12:34:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726860887; x=1727465687; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HOZ2tNWhJEL62Ogp+Ip5R0QpJZdMpZvO51/ajOZ9nnE=; b=iiQfdVxzov7bFvQzH5Ew+HszUHSKe2On8+jNRu1Z6pwocITjIXAl60uTnzpTlOA6BX rS/86aqsEE4lKwL5AUVG5e7WkqHMNK4xCB1y3MH7dfqeoTsaSj1kFu6EE0h++tae2jma edNUSYE0jeefaucXQupwHOlftfjKJ9RdRAWfQ95hkm8t7Snv7bHQQ5JbMo3Qg7t2V3lL hjQ/hpXFjUBReb9HpsyjRByd1kZpokKb1hW1WJoy8mLtp3d7HB29boQsqxO1jnondepn p1ZNMJ64DOVihAVK1WtIMQPC8fGg6n/ZfwdTrnOu5lbj5+5X07fOeW5c4GN/qNa2PPng iqDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726860887; x=1727465687; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HOZ2tNWhJEL62Ogp+Ip5R0QpJZdMpZvO51/ajOZ9nnE=; b=iffEmtzPxFqlqpzXBSMeUZ7iKLdtKOelVZlKEVxPFa5FVMJSBFxyfq2irCMoyGgFDC TkSIemvvQm+x7Jh3fGgPt+D5VF3ix9E2i5AMEfSVRz/Lgw8AFOsuWM52pQcw27RowzAI spBfCTcr+cWJnFt+fO5trbADv6F2fT/ARUrBk33VeB7H5MRYzfOBr4gcTlFQF0Bh8MoZ zDiNMT+mRFeUsXa9O405qc75DTRBc+co1TC1FCXxOv5xc+WGGNd3g32+pQYH1+qhsWZU eiB1u/5qOIgFnuKcIJmoW6sr356Wg3nYtGKj4qVfqWrO7vcIW2LH/i5EjjerUeUPyriR uplw== X-Forwarded-Encrypted: i=1; AJvYcCVgsifrSSdv5HjegXctJa9f/lD4WpvsZ9m7+2J5QdtKlu7fOZEGwuwjAioCN4jhECecEAiY2w==@gnu.org, AJvYcCVsgVB18QyJbJxNIHBKmLQKoDvd9oSZu0vr45X+FGTBjcsNBTA1VvIQG4X9Ny5LPYMIolTz8j1PzjMsww==@gnu.org X-Gm-Message-State: AOJu0YzGW5gSCI3Iuwmt4TjEYuxT538w3N7uffijrXiPrU/DBoHcntBD 4aH1tGO5OJoqCH/lUAYXyngOr3s1isK0BL9VHXTxzlPuSU+KDZGeF0j2x01U X-Google-Smtp-Source: AGHT+IGD8jtB6rKVCpxF0umoAp4T8yLH5PWSvkA4uq53PhPwND7eJKg3tkk8DI05lGJcHUs8Ug9FGw== X-Received: by 2002:a05:6a00:3914:b0:714:1f6d:11e5 with SMTP id d2e1a72fcca58-7199c951750mr6358263b3a.12.1726860887235; Fri, 20 Sep 2024 12:34:47 -0700 (PDT) Original-Received: from localhost ([1.7.159.70]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944ad18f3sm10172581b3a.88.2024.09.20.12.34.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Sep 2024 12:34:46 -0700 (PDT) In-Reply-To: <86setu5f85.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Sep 2024 21:53:30 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::442; envelope-from=visuweshm@gmail.com; helo=mail-pf1-x442.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323863 Archived-At: [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9A=E0=AF=86= =E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 20= , 2024] Eli Zaretskii wrote: >> From: Morgan Willcock >> Date: Fri, 20 Sep 2024 18:53:44 +0100 >>=20 >> When testing the Emacs 30 pre-release I found that all of the PDF files >> which I tried to view were not readable because the text appeared to be >> missing. >>=20 >> Eventually I found the variable doc-view-mupdf-use-svg, and setting it >> to nil reverted the rendering to the old method where the text was >> visible. > > Why is that? If your system supports display of SVG images, why > wasn't the text readable? Tassilo, any ideas? >> I am also not sure that having it default to t (enabling SVG rendering >> by default) is a good idea. It probably works well for certain types of >> document but it wasn't usable for the ones which I was viewing (which >> were all automated invoices sent by e-mail from multiple organisations). > > It is only non-nil if your Emacs supports display of SVG images, and > in that case I don't see why not do it. I think we should investigate > your problem in more detail to understand why it didn't work for you. > I hope Tassilo will have some ideas for looking into this. I believe the problem might be the one alluded to in NEWS.29: *** doc-view can now generate SVG images when viewing PDF files. If Emacs is built with SVG support, doc-view can generate SVG files when using MuPDF as the converter for PDF files, which generally leads to sharper images (especially when zooming), and allows customization of background and foreground color of the page via the new user options 'doc-view-svg-background' and 'doc-view-svg-foreground'. To activate this behavior, set 'doc-view-mupdf-use-svg' to non-nil if your Emacs has SVG support. Note that, with some versions of MuPDF, SVG generation is known to sometimes produce SVG files that are buggy or can take a long time to render. Stefan reported such a case earlier: https://yhetil.org/emacs-bugs/jwvbkn722qj.fsf-monnier+emacs@gnu.org/