Added a rotate function to our internal PDF document