I have a scanned file as a pdf and sometimes scanned documents may be upside down or flipped. I want to be able to rotate the document to proper reading format. Also the scanned document already had a QR code is there a way to detect where the QR code is at because the proper alignment would be that the QR code has to be on the top left corner. that way the text is proper as well.
Here is what i have - it works great rotating an upside down document but if the document was scanned in proper format it saves it upside down.
if(page.Rotate != 180)
page.Rotate = (page.Rotate + 180)%360;