pdf: Move page to screen coordinate transformation to JS
The motivation to do this is to be able to convert in annotation mode when the plugin is not active. Fortunately it turns out that there is enough information to do this without communicating with the plugin -- the dimensions of each page are available and the translation from points to pixels is straightforward. This new implementation also deals with the case where the document has been rotated. Bug: 902646 Change-Id: Id2814f96f6020c44cee07f725f5170494f1b512b Reviewed-on: https://chromium-review.googlesource.com/c/1347646Reviewed-by:Demetrios Papadopoulos <dpapad@chromium.org> Reviewed-by:
Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dstockwell <dstockwell@chromium.org> Cr-Commit-Position: refs/heads/master@{#611940}
Showing
Please register or sign in to comment