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 expectedCreate Rotate -90 VersionDo it all Again, but try to respect the rotation matrixesPlease 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 * matI meantannot.rect * page.rotation_matrix * mat.