PDF Annotation to Image Location - Understanding Rotation #1721
-
First, I am sorry for asking about this topic. Its been covered a lot, but I just don't get it. The task is to extract an region of interest from a PDF page that has been turned into an image, no matter the rotation.
This is straight forward and works as expected
Create Rotate -90 Version
Do it all Again, but try to respect the rotation matrixes
Please help here
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
Still looking for help on this. Not sure if this comment will help bring this to anyone's attention. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
sorry, my bad: |
Beta Was this translation helpful? Give feedback.
-
but of course, all is also fine if you (temporarily) nullify page rotation ... |
Beta Was this translation helpful? Give feedback.
-
Yes it is. The rectangle |
Beta Was this translation helpful? Give feedback.
sorry, my bad:
Instead of
annot.rect * page.transformation_matrix * mat
I meantannot.rect * page.rotation_matrix * mat
.