all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Multi image PDF continuous mode
@ 2021-12-09 17:05 Juri Linkov
  2021-12-09 19:24 ` Stefan Kangas
  2021-12-09 19:35 ` Tomas Hlavaty
  0 siblings, 2 replies; 11+ messages in thread
From: Juri Linkov @ 2021-12-09 17:05 UTC (permalink / raw)
  To: emacs-devel

Doc-view has such a long-standing shortcoming that it doesn't allow
continuous scrolling of PDF pages when one PDF page at the top of the
window smoothly flows into the next PDF page at the bottom of the window.

But it seems there is no inherent limitation in Emacs that would
prevent implementing this.  And indeed after doc-view generates
PNG images in /tmp/docview*/*pdf/*.png it's possible to insert
absolute filenames of all PNG files into some buffer, then enable
two modes:

  M-x iimage-mode RET

that replaces filenames with images, and after

  M-x pixel-scroll-precision-mode RET

wheel-mouse scrolls consecutive PDF images smoothly
like all decent PDF viewers do.

OTOH, scrolling keys are not so nice, and PgUp/PgDn
insist on jumping to the top of the next image.
But maybe image-scroll-up and image-scroll-down
could be adapted to multi image buffers,
possibly by creating a new mode multi-image-mode.
Also mouse dragging could help in scrolling.

Now when looking at this problem from another point of view,
browsing a list of image files is what image-dired.el
is intended to do.  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.

PS: Actually, there is some weird problem in image-dired: when
the thumbnail window is resized to a width less than half-frame,
then image-dired creates a new thumbnail window.  But surely
this could be fixed.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-01-10  8:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-09 17:05 Multi image PDF continuous mode Juri Linkov
2021-12-09 19:24 ` Stefan Kangas
2021-12-09 19:35 ` Tomas Hlavaty
2021-12-09 20:05   ` Juri Linkov
2022-01-08  7:11     ` dalanicolai
2022-01-08  7:18       ` dalanicolai
2022-01-08  7:24         ` dalanicolai
2022-01-08  9:34       ` Stefan Kangas
2022-01-08 18:17       ` Juri Linkov
2022-01-08 21:32         ` dalanicolai
2022-01-10  8:13           ` Juri Linkov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.