You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I read up on a couple of old issues referencing transfer_rotation_to_content as well as Annotations an came to the conclusion that this seems to be an egde-case issue: When applying the page's rotation onto contents, any Annotation will be unaffected - messing up their visual context.
Now I am not entirely literate within the PDF spec but from what I've seen, every annotation contains a Rect?
If this makes sense, I would like to propose/contribute also transforming any annotations accordingly (seems pretty straight forward based on how "/MediaBox", "/CropBox", "/BleedBox", "/TrimBox", "/ArtBox" are transformed).
A little background on our usecase: We are presented a couple PDFs which have been scanned (for some reason a couple of scanners apply 270 degree visual rotations to make the scan look portrait-like) and immediately annotated.
Now as we need to further process the files and add watermarks or similar alterations, it has become painful to align the scan+annotations with any new content.
Amending the transfer_rotation_to_content should be a great relief.
Thank you for looking into this, I would be happy to dedicate my time to making this change happen - I wanted to discuss this issue as maybe there is a good reason why annotations are not transformed right now.
Kind Regards, Josha
The text was updated successfully, but these errors were encountered:
As far as I am aware, only markup annotations have a rectangle, although some might have additional relevant aspects like PolyLine with its vertices. This probably needs to be taken into account as well.
Speaking of transfer_rotation_to_content: Is this the only case where annotation transformations are not supported? What is the current state for the other transformations - do they affect annotations as well and should they affect annotations? Should we enforce this to the user or make this optional?
Explanation
I read up on a couple of old issues referencing transfer_rotation_to_content as well as Annotations an came to the conclusion that this seems to be an egde-case issue: When applying the page's rotation onto contents, any Annotation will be unaffected - messing up their visual context.
Now I am not entirely literate within the PDF spec but from what I've seen, every annotation contains a Rect?
If this makes sense, I would like to propose/contribute also transforming any annotations accordingly (seems pretty straight forward based on how "/MediaBox", "/CropBox", "/BleedBox", "/TrimBox", "/ArtBox" are transformed).
A little background on our usecase: We are presented a couple PDFs which have been scanned (for some reason a couple of scanners apply 270 degree visual rotations to make the scan look portrait-like) and immediately annotated.
Now as we need to further process the files and add watermarks or similar alterations, it has become painful to align the scan+annotations with any new content.
Amending the transfer_rotation_to_content should be a great relief.
Thank you for looking into this, I would be happy to dedicate my time to making this change happen - I wanted to discuss this issue as maybe there is a good reason why annotations are not transformed right now.
Kind Regards, Josha
The text was updated successfully, but these errors were encountered: