pdfjs: fix scaling behavior