I am using pdf.js.
But, image quality of PDF is low quality.
Please tell me solution method.
var TARGET_PAGE = 1;
var PAGE_SCALE = 1;
function
Just put the canvas inside a wrapper var scale = 5;
var viewport = page.getViewport(scale);
canvas.width = viewport.width;
canvas.height = viewport.height;
canvas.style.width = "100%";
canvas.style.height = "100%";
wrapper.style.width = Math.floor(viewport.width/scale) + 'pt';
wrapper.style.height = Math.floor(viewport.height/scale) + 'pt';