Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PDF.js hello world example showing blurry text

1,046 views
Skip to first unread message

Liu Jian

unread,
May 6, 2014, 3:03:15 AM5/6/14
to mozilla-d...@lists.mozilla.org

The same helloworld.pdf is blurry and fuzzy in helloworld/index.html, but sharp and clear in the viewer.html. Screen shot http://yundoumiao.qiniudn.com/screenshot.png

OS X 10.9.2
Chrome 34.0.1847.131
PDF.js commit 68e57f2232d0772cabbc949aab4ae8decf9a4983

Anybody know why?

Thanks
Best regards

Yury Delendik

unread,
May 6, 2014, 11:07:15 AM5/6/14
to Liu Jian
That's happening due to HiDPI/Retina display. You have to rescale the
canvas so it will match physical screen pixels. PDF.js viewer does
https://github.com/mozilla/pdf.js/blob/master/web/page_view.js#L503

Thanks.
0 new messages