kkim
November 30, 2023, 10:42pm
3
Hi there,
Thanks for contacting pdf.js express forums,
Does the PDF have embedded rotation? You can check if the page is rotated or not using the getCompleteRotation API and then rotate the page accordingly using rotateClockwise or rotateCounterClockwise
When the sample pdf is loaded in the viewer, it is thought that the coordinate values are rotated.
So, if you draw the annotation with the coordinate value, it is rotated and shown.
Please tell me how to draw it as if it wasn’t rotated.>
PDF.js Express Version
7.1.0
Detailed description of issue
When the sample pdf is loaded in the viewer, it is thought that the coordinate values are rotated.
So, if you draw the annotation with the coordinate value, it is rotated and shown.
Expected …
https://pdfjs.express/api/Core.DocumentViewer.html#rotateClockwise__anchor
Best regards,
Kevin Kim