SkewDetection uses an algorithm that works on printed text within a document. This image does not contain sufficient text for it to work well. As this document contain alignment marks (black boxes in corners), I think you would be better to write a method that scanned down the page until it found the top alignment marks at the left and right. By comparing the position of the left and right marks, you could calculate the necessary rotation.