Hi, I noticed an issue when using the library with PDFs that are rotated or in landscape orientation. When exporting annotations on such PDFs, their positions don’t match correctly — they appear offset or misaligned, even though they look fine while editing.
I also tested the official demo (link) and the same problem occurs there: when uploading a landscape PDF, not only are the exported annotations misaligned, but new objects are also not added at the exact position where I draw them.
It seems like the coordinate calculation doesn’t fully account for page rotation or different aspect ratios. Is there a recommended way to handle landscape or rotated PDFs, or could this be a bug in the library?
Here is my PDF for testing:
0000_P_1140_V3.pdf
Thanks!
@Laomai-codefee
Hi, I noticed an issue when using the library with PDFs that are rotated or in landscape orientation. When exporting annotations on such PDFs, their positions don’t match correctly — they appear offset or misaligned, even though they look fine while editing.
I also tested the official demo (link) and the same problem occurs there: when uploading a landscape PDF, not only are the exported annotations misaligned, but new objects are also not added at the exact position where I draw them.
It seems like the coordinate calculation doesn’t fully account for page rotation or different aspect ratios. Is there a recommended way to handle landscape or rotated PDFs, or could this be a bug in the library?
Here is my PDF for testing:
0000_P_1140_V3.pdf
Thanks!
@Laomai-codefee