Adds 3rd argument: rotation's direction

Instead of always rotating to Portait, allow the user to choose the direction in which he wants to rotate the pdf.