universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

pdf extension: blurry text

Open Gee-Bee opened this issue 4 years ago • 0 comments

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.

image

Expected behavior: Text in pdf files should be sharp. It should be rendered by pdf.js at correct scale to fit the container height.

image (working on PR)

Related code:

// set the canvas height with CSS
this._$canvas.css({
    height: canvas_height
});

Gee-Bee avatar Aug 10 '21 11:08 Gee-Bee