[Fix] Fix the PDF rendering on retina display

Some users report that the PDF was cut or to small.
The canvas which display the PDF was to small. Now the canvas has the
dimension of the hardware screen and it is scaled to match the software
screen dimension.