Make Firefox PDF Viewer Default to Page Fit Zoom
One of the reasons I started looking at Angular web development framework a few years ago was because it was backed by Google and I saw that as a positive thing at the time. One of the reasons I looked at Marko web development framework now is because I no longer see Google backing as a positive thing.
I remember Google when it was a young and idealistic startup and today's mega corporation has strayed quite far from its "Don't be evil" origins. A few years ago I would enthusiastically add new Google products to my life. Today I am skeptical of new Google launches, due to fiascos like Stadia and disruptions caused by their historical tendencies to kill products. And of the Google products I'm already using, I keep my eyes open for alternatives that might help me reduce Google's grip on my digital life.
As part of this transition, I'm working to reduce reliance on Google's Chrome browser. I have Firefox installed but remembering to use it instead of Chrome requires breaking longtime habits. My latest motivation to do so is Google's aggressive push for additional user tracking to increase its advertising revenue, and maybe this time my switchover will stick. I plan to keep Chrome around to run Google-specific properties like Gmail and YouTube (since Google is tracking me there anyway) but use Firefox for everything else.
So far there's nothing in Firefox that made me regret switching, and I've found a feature that might make the switch worthwhile all on its own: I can make Firefox PDF viewer default to "Page Fit"!
I remember when downloading Adobe's free Acrobat reader was a standard part of setting up a new machine. Today, PDF's ubiquity meant browsers tend to include PDF viewing capability. I'm tired of Adobe trying sneaky things to generate revenue from free Acrobat reader, so I am happy to skip that download. But there was one little annoyance: I prefer to read my PDF with each page zoomed to fit the window. I know how to set that default on Acrobat reader but that's not how it opens by default in a browser's integrated PDF viewer window.
I never found a way to do what I want in Chrome's PDF viewer. Microsoft's Chromium-based Edge browser is a little better: there's a keyboard shortcut Control + "\" to change zoom setting. I got in the habit of pressing Control+"\" twice whenever I opened a PDF in Edge, which zooms to page, but it would be nice if I didn't even have to do that. A web search found confirmation this was not possible in Edge.
By default, Firefox opens PDF in "Automatic Zoom" mode, which isn't what I want. I searched for a Firefox equivalent to Control+"\" in Edge but I found something better: this support page with instructions on how to change that default, it even had a link to the GitHub pull request that implemented the feature. Sweet!
In case those links go dead in the future, here's the summary:
- Type "
about:config
" into Firefox address bar - We will see a warning screen and we have to decide to accept the risk and continue.
- In the search box, type "
pdfjs.defaultZoomValue
" - Click the pencil to edit.
- Type in
page-fit
. (Or, if that's not personal preference, one of the following supported options:auto
,page-actual
,page-fit
orpage-width
.) - Click the check icon to save.
Now Firefox PDF viewer will open with my preferred zoom setting, no need to press Control+"\" twice.
If Google had left Chrome alone as a consumer-friendly browser, I don't know if Firefox PDF default zoom capability would have enticed me to switch. However, now that Google is getting greedy and I'm starting to use Firefox, this feature is definitely one that will make me want to stay with Firefox. In the meantime, another Google "revenue enhancement" policy change motivated me to start using a real camera again.