added PDF rotate 180deg functionality.