Emano-Waldeck / pdf-reader

a PDF reader extension based on Mozilla's PDF.js library for Chromium-based browsers
https://webextension.org/listing/pdf-reader.html
29 stars 8 forks source link

Let user enter zoom level manually #21

Closed jdanbrown closed 1 year ago

jdanbrown commented 1 year ago

Sometimes I'd like to zoom to 115% or 125% or 140%, but the zoomIn()/zoomOut() levels only allow a fixed set of zoom values. It'd be useful to add a "Custom Zoom..." option to allow the user to manually type in a zoom level.

As a power-user workaround, here's how to do it in the dev console:

PDFViewerApplication.pdfViewer.currentScaleValue = 1.15
jdanbrown commented 1 year ago

Awesome, thank you!

Emano-Waldeck commented 1 year ago

Cheers