From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Multi image PDF continuous mode Date: Thu, 09 Dec 2021 22:05:03 +0200 Organization: LINKOV.NET Message-ID: <86pmq5lf2o.fsf@mail.linkov.net> References: <86lf0tq5zy.fsf@mail.linkov.net> <87ilvxinbn.fsf@logand.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15133"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: Tomas Hlavaty Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 09 21:07:16 2021 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 1mvPhD-0003jF-Ak for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 21:07:15 +0100 Original-Received: from localhost ([::1]:40676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvPhB-0000dH-MV for ged-emacs-devel@m.gmane-mx.org; Thu, 09 Dec 2021 15:07:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvPfq-0007TQ-J3 for emacs-devel@gnu.org; Thu, 09 Dec 2021 15:05:50 -0500 Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]:57371) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvPfo-0005WX-8K for emacs-devel@gnu.org; Thu, 09 Dec 2021 15:05:50 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id EE53660006; Thu, 9 Dec 2021 20:05:44 +0000 (UTC) In-Reply-To: <87ilvxinbn.fsf@logand.com> (Tomas Hlavaty's message of "Thu, 09 Dec 2021 20:35:08 +0100") Received-SPF: pass client-ip=217.70.183.195; envelope-from=juri@linkov.net; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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" Xref: news.gmane.io gmane.emacs.devel:281539 Archived-At: >> After doc-view generates a gallery of PDF images, image-dired could be >> invoked on the output directory of PNG images, and indeed in this case >> the window layout of image-dired looks like what most PDF viewers do: >> on the left side there is a narrow window with thumbnails of PDF >> pages, and on the right side a larger window with PDF pages. > > Scaleable document viewer should generate the images lazily. Indeed, for long documents we will need more optimization: not to load all images at once, but only after going to the next page. At the beginning each page could have a placeholder, either just newlines or an empty image. Then navigating to a page, it will attach the image file with the display property. Also only visited pages should update their images when the user zooms or changes other parameters, etc.