universalviewer
universalviewer copied to clipboard
pdf extension: blurry text
UV version:
[email protected]
I'm submitting a:
- [ x] bug report
- [ ] feature request
- [ ] support request
Current behavior: Text in pdf files is blurry. It was introduced in #742. Pdf is rendered in initial scale (0.7), then canvas height is set by css, making the text in pdf blurry.

Expected behavior: Text in pdf files should be sharp. It should be rendered by pdf.js at correct scale to fit the container height.
(working on PR)
Related code:
// set the canvas height with CSS
this._$canvas.css({
height: canvas_height
});