Reputation: 161
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
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
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