Increased the scale for rendering PDF pages from 0.2 to 0.5 in the `getViewport` method to enhance resolution and sharpness. Although CSS scales the canvas down, the higher scale ensures better visual quality. Enabled high-quality rendering for the canvas context by setting `ctx.imageSmoothingEnabled` to `true` and `ctx.imageSmoothingQuality` to `'high'`, resulting in smoother and sharper PDF content rendering.
11 KiB
11 KiB