rotating the pdf file fail