Hi there,
It looks like that code will scale the canvas dimensions to the viewport dimensions. This may improve quality but this is not something that we have tested.
Regarding the provided PDF, I zoomed out to 80% and the text appears legible:
Chrome for reference:
Our main product Apryse WebViewer for reference:
Best regards,
Kevin Kim


