vedang / pdf-tools

Emacs support library for PDF files.
https://pdftools.wiki
GNU General Public License v3.0
642 stars 90 forks source link

Keep zoom level and horizontal position when changing pages #297

Closed muello closed 2 months ago

muello commented 2 months ago

If I zoom in with C- and then scroll to the next page, the new page is displayed at the default zoom level. It'd be nice if it was displayed at the zoom level (and horizontal scrolling position) I'd set when viewing the previous page. Sometimes what you want to see is in a certain area of every page in a document.

aikrahguzar commented 2 months ago

If I zoom in with C- and then scroll to the next page, the new page is displayed at the default zoom level. It'd be nice if it was displayed at the zoom level (and horizontal scrolling position) I'd set when viewing the previous page. Sometimes what you want to see is in a certain area of every page in a document.

I am unsure what function you are running, but pdf-view-enlarge (bound to +) and pdf-view-shrink bound to - change the zoom level for all pages. If you want to focus on a certain area the best way is probably pdf-view-set-slice-using-mouse (bound to s m).

muello commented 2 months ago

Thank-you!

Sorry, my message was incomplete. I was using C-(down-mouse-5), bound to pdf-util-image-map-mouse-event-proxy.

I guess I'll bind pdf-view-enlarge/shrink to the mouse wheel.

That slicing function is a gem!