How to get actual pdf page size in iPad?
问题 How can I get PDF page width and height in iPad? Any document or suggestions on how I can find this information? 回答1: I was using the answers here until I realised a one-liner for this CGRect pageRect = CGPDFPageGetBoxRect(pdf, kCGPDFMediaBox); // Which you can convert to size as CGSize size = pageRect.size; Used in Apple's sample ZoomingPDFViewer app 回答2: Here's the code to do it; also to convert a point on the page from PDF coordinates to iOS coordinates. See also Get PDF hyperlinks on iOS