Skip to content

Annotations misaligned on export for landscape/rotated PDFs #3

@mamod93

Description

@mamod93

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions