You can try to get the page size of your pdf file and then check if there is a width> than heigh and ultimately rotate it ...
-(CGSize)getPdfSize{
CFURLRef pdfURL = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("aPdfFile.pdf"), NULL, NULL);
pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
CGPDFPageRef page = CGPDFDocumentGetPage(pdf, 1);
CGRect appR = CGPDFPageGetBoxRect (page, 1);
return appR.size;
}
source
share