News for hackers. Stuff that matters.
Re:SumatraPDF Reader by mattegan on Monday October 23, 2023 @11:03PM (#37994435)
Like others have mentioned, Sumatra is one of a few Windows-only utilities that I routinely miss when on Mac or Linux, primarily due to two simple interactions which I miss every day viewing schematics, mechanical/technical drawings or datasheets -- Alt + Scroll == Zoom and Right Click + Drag == Pan.

Does anyone know of any viewers on Mac or Linux that provide these two features? Skim on Mac implements Option + Scroll and Left Click + Drag Pan, but it's not reconfigurable to any other keys or mouse buttons.

Re:SumatraPDF Reader by viraptor on Monday October 23, 2023 @11:35PM (#37994626)
Every browser pdf reader I've seen handles the alt+scroll for zooming (since the browser itself does it) Not sure about panning shortcut.
Re:SumatraPDF Reader by keehun on Monday October 23, 2023 @11:04PM (#37994446)
I use three-finger drag on Mac (with a magic trackpad) and find that better than any combination of click & drag. Have you tried it?
Re:SumatraPDF Reader by mattegan on Monday October 23, 2023 @11:07PM (#37994461)
That's fair! I'm just not a big trackpad person since I find doing ECAD or MCAD with a trackpad to be not so enjoyable :)
Re:SumatraPDF Reader by Izkata on Monday October 23, 2023 @11:11PM (#37994494)
evince (linux) does Zoom with Ctrl + Scroll, maybe yours does too? I don't think it has Pan, but I'm keyboard-heavy and use horizontal scroll with Shift + Scroll.
Re:SumatraPDF Reader by barbs on Tuesday October 24, 2023 @02:45AM (#37995525)
Evince uses middle-click to pan
Re:SumatraPDF Reader by joveian on Tuesday October 24, 2023 @02:47AM (#37995540)
Middle button and drag moves the text wherever you drag it.

The evince feature I can't live without is the find, which shows a side panel with all matches in the document along with a bit of context. I wish all document find everywhere did this.

Re:SumatraPDF Reader by ww520 on Monday October 23, 2023 @11:11PM (#37994492)
Can it run under Wine on Linux?
Re:SumatraPDF Reader by app4soft on Tuesday October 24, 2023 @01:50AM (#37995215)
Yes, it runs under Wine or CrossOver on Linux and Mac.
Re:SumatraPDF Reader by TylerE on Tuesday October 24, 2023 @12:46AM (#37994914)
FoxIt does zoom on Ctrl+Scroll, and Pan on Left Click+Drag. Runs on Mac and I'd assume linux.

Close enough?

I assume if you REALLY want to go nuclear on it, there is some shareware app that will let you do per-app keyboard emulation and rebind inputs "in flight" or something.

I believe https://www.keyboardmaestro.com/main/ is the standard solution.

Re:SumatraPDF Reader by SV_BubbleTime on Tuesday October 24, 2023 @11:15AM (#38000350)
The linux version of foxit is absolute trash. They stopped development on years ago. It looks 1990 bad, a lot of features are missing.

It actually runs better under wine, with all sorts of errors that pop up because its updater Service can’t be found.

Re:SumatraPDF Reader by vladvasiliu on Tuesday October 24, 2023 @12:59AM (#37994967)
Zathura does that under Linux, with the difference that zoom is achieved with Ctrl instead of Alt. Right-Click dragging = pan.

One feature I absolutely love is that Page Down goes to the top of the next page. It's very practical when you want to skim something quickly, with a zoom level that doesn't fit a page size perfectly.

Re:SumatraPDF Reader by eviks on Tuesday October 24, 2023 @01:05AM (#37994993)
> Skim on Mac implements Option + Scroll and Left Click + Drag Pan, but it's not reconfigurable to any other keys or mouse buttons

You can use Karabiner Elements + BetterTouchTool to rebind that when Skim is in the foreground?

Re:SumatraPDF Reader by plumeria on Tuesday October 24, 2023 @01:34AM (#37995123)
I really like Okular (especially with the theme that allows me to read PDFs with dark red background and yellow text), but haven't been able to run it on my Mac Mini with Apple silicon. The brew formula appears to be broken for newer macs.
Re:SumatraPDF Reader by cmplxconjugate on Tuesday October 24, 2023 @02:35AM (#37995456)
I'm in the same boat. It's almost the only application I miss! I use Okular but I think Sumatra just has the right UI for me.
Re:SumatraPDF Reader by andrepd on Tuesday October 24, 2023 @02:46AM (#37995530)
I use qpdfview and I'm very happy. Loads of customisability.