Getting Skew Angle and Rotate Image

Hi guys!

I’m developing a process that extracts data from PDF, and because are Scanned PDF, they don’t come with a correct angle, so I need to check the angle and rotate the PDF to a correct angle!
So I’m using the package ImageActivities.Activities and I’m getting the skew angle, but when it comes to rotate it, I have doubts about how I should apply the angle to rotate it!

Can someone help?
Thanks!

Hi @mmcruzRPA!

To correct a angle of a image, you just need to use ‘Image Rotate’ activity and use the skew angle as 0. The activity does the correction automatically:

image

image

image

Hi @Marcelo_Guimaraes!

Yes, I tried that way but most of the times the scanned document doesn’t rotate well, I was searching if there is conditions that should be applied depending of the skew angle of each document, but didn’ t find something clear until now

Thanks!

Hi @Marcelo_Guimaraes ,

I tried this option and its not working for png file. Attached screenshots contains more details.

1.2.1 is my input document and test is my output document. Both are in landscape\rotated mode.

Could you advise on this

You got any solution to this?