coerrace
coerrace

Reputation: 161

pdf.js and viewer.html Default zoom initial value

js

https://github.com/mozilla/pdf.js/

I´m calling in this way http://xxx.xxx.xxx.xxx./pdf/web/viewer.html?file=file.pdf

Now the question is how can I set the value to 75% default zoom like initial value display?

Upvotes: 4

Views: 11815

Answers (2)

Jake Seo
Jake Seo

Reputation: 14

In web/viewer.js line 109

Change var DEFAULT_SCALE_VALUE = 'auto';
to var DEFAULT_SCALE_VALUE = 'page-width';

it works well.

source: https://github.com/mozilla/pdf.js/issues/9583

Upvotes: 0

Remi Smirra
Remi Smirra

Reputation: 2539

I think this is what you are looking for?

/pdf/web/viewer.html#zoom=75

working example

http://mozilla.github.io/pdf.js/web/viewer.html#zoom=75

Upvotes: 10

Related Questions