From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kristoffer Balintona Newsgroups: gmane.emacs.help Subject: Re: Improving DocView quality for PDFs? Date: Sun, 13 Oct 2024 19:51:38 -0500 Message-ID: References: <87wmijewqs.fsf@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10856"; mail-complaints-to="usenet@ciao.gmane.io" To: Neal Becker , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 14 02:52:27 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1t09Jy-0002gD-Nx for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 14 Oct 2024 02:52:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t09JL-0004tk-CN; Sun, 13 Oct 2024 20:51:47 -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 1t09JK-0004tX-3Y for help-gnu-emacs@gnu.org; Sun, 13 Oct 2024 20:51:46 -0400 Original-Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t09JG-00076m-RK for help-gnu-emacs@gnu.org; Sun, 13 Oct 2024 20:51:44 -0400 Original-Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-5398ec2f3c3so4440589e87.1 for ; Sun, 13 Oct 2024 17:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728867100; x=1729471900; darn=gnu.org; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :from:to:cc:subject:date:message-id:reply-to; bh=Ds8JRxP4tiQvKUBdsVIpkjDQLc9x/F95B8Mghdsu414=; b=JMJH4KYlYfPnrsov/0t0HO0YXDe7vF1FTjKZ1W8C6UpA0sPZjDLySFKzrgXjfIkSgJ Ftq6jO7wk8W26OHeU+jiufDFPTwFlEFHDjwDjAXAOd+ueiK4guwGvZna6t8cf2AzZRty 2IFXZKdriN5xx2BS39r35QuK+dbEVZl3Eb2VmmT3egEoSqOKVpRBMTPaoyXkHE/7F7oc U+AdP02DhEnBLX6Pd1IpjIobv4IHdyuhDD54Dcyb+1DOuk113ZHC1AbzrX4/627CnT67 AlfKZPnC5Vu+gNX/uX6FRptXc0eq+ZO6YDir0ndQBOeR+kBZ2MOpHGZnaGYdhoMOp/KP yVtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728867100; x=1729471900; h=to:subject:message-id:date:mime-version:references:in-reply-to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ds8JRxP4tiQvKUBdsVIpkjDQLc9x/F95B8Mghdsu414=; b=b3C0R6l9DoEorURS7c+XKjWFIzuPmUL6pFy/4JTVMbXa+AIwkYpzYvid/JiNHTT9wg s2OwGptSDzLiuNfWnmKJ+KdRXvJHagLauRGd+k64xoEVY4DPz8ahv0Qpru+psG9iaaL3 xK9n35/wxoE1/gvuZEQ8xe3S5HCIfhOwueCbNH8yv2JVhMxV+QJAeosTzsYiRpnyKtEA Rsojod9bKTFkN1hSPA9lbH7xAPMA4oNI29/KkmqnvULrFm6754FsWhABrF13UVx+D8/Y znG8kpp7XioKdtqdQVgeFrS15zLxqF3+1E6fbBin8O0AnTephZZc5JGR1SQywhCcK3Wb sSDw== X-Forwarded-Encrypted: i=1; AJvYcCVg9MA7gMQ7XjOBaPYOApOYSynxKJ0x7nrfX9hNUxT1EWK4U0G90uFOd5LxjZFA++LSaAKKdsfXivLifUZWBg==@gnu.org X-Gm-Message-State: AOJu0Yw31Td/vrNT8aS9kxsxm36tQLi4Rj5zh5UpTKZslz5Ci4udpGHk DRaSu5pdgTYK2SsjOWQyK4MJDfwUpI0NEBfTjNS4ea8sQ8vkIakHek5ijs0Fa/j2PM/FhlVFaGh gH9i8/FijRvVlFJuncVNtYzsBSFnhX6VW X-Google-Smtp-Source: AGHT+IE7CdEDdSZoV+r44eWbhgJSsANuC9yIaJDxnfLdEX5hhgRZfVRLiS5zRl79ZM0x5WZdNqAEbTpvDb7VmRYZmkw= X-Received: by 2002:a05:6512:3d23:b0:536:7b74:ef50 with SMTP id 2adb3069b0e04-539e54e81c1mr2331746e87.18.1728867099985; Sun, 13 Oct 2024 17:51:39 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 13 Oct 2024 19:51:38 -0500 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=krisbalintona@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148153 Archived-At: On Sun, Oct 13 2024, Neal Becker wrote: > Kristoffer Balintona wrote: > >> On Mon, Oct 07 2024, Christopher Howard wrote: >> >>> Hi, I like viewing PDFs inside Emacs using DocView, but the quality is >>> noticeable lower than in Evince. It looks blocky, like it needs aliasing >>> or something. Could I improve this with some setting changes? I see some >>> variables like Doc View Ghostscript Options but I don't know what options >>> I need to pass in. I see some discussions about this on the Internet but >>> they are very old discussions with unclear guidance. >>> >>> I am running GNU Emacs 30.0.91 (build 10, x86_64-pc-linux-gnu, GTK+ >>> Version 3.24.41, cairo version 1.18.0) of 2024-10-04. >> >> Hi, >> >> Have you given pdf-tools >> (https://github.com/vedang/pdf-tools?tab=readme-ov-file#about-pdf-tools) >> a go yet? If you haven't heard of it, I think this is the go-to Emacs >> PDF viewer for many users because it is very fast and supports many >> features that non-Emacs PDF viewers support, like making and viewing >> annotations as well as jumping to different points in a document's >> outline (though that requires certain metadata to be present in the >> document). >> >> If you want to stick with the built-in DocView, I don't have any tips >> there since I use pdf-tools's pdf-view-mode in place of it. >> > > Interesting. I'm also trying pdf-tools. But how do I know if emacs is > using it? > Well, the pdf-tools repository[1] details the installation procedure well: you should call `M-x pdf-tools-install'. After that, you can open up a PDF and its major mode should be `pdf-view-mode'. If it isn't already in that mode but works if you directly invoke `M-x pdf-view-mode', then it'll probably be a problem with your config. Footnotes: [1] https://github.com/vedang/pdf-tools?tab=readme-ov-file#installing-pdf-tools-elisp-code -- Best, Kristoffer