<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 30, 2009, at 3:24 PM, Jim Skibbie wrote:</div>...<br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-size:9pt"><font face="Helvetica, Verdana, Arial">page_rect = pdf.getMediaBox( page_number )<br> page_width = int(page_rect.getWidth())<br> page_height = int(page_rect.getHeight())<br> <br> print "%d \r\n%d" % (page_width, page_height)<br> <br> <br> Under OS 10.5, this script now uses a deprecated function of CoreGraphics and I get an error that says:<br> <br> <br> </font></span><blockquote type="cite"><span style="font-size:9pt"><font face="Helvetica, Verdana, Arial"> <Error>: The function `CGPDFDocumentGetMediaBox' is obsolete and will be removed in an upcoming update. Unfortunately, this application, or a library it uses, is using this obsolete function, and is thereby contributing to an overall degradation of system performance. Please use `CGPDFPageGetBoxRect' instead.<br> </font></span></blockquote><span style="font-size:9pt"><font face="Helvetica, Verdana, Arial"><br> <br> Can anyone steer me in the right direction on how to work with the CGPDFPageGetBoxRect function?<br> <br> Thanks.<br> Jim</font></span></blockquote><br></div><div>Jim -- Try the following:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>page_rect = pdf.getPage(page_number).getBoxRect(page_number)<br></div><div><br></div><div>--Bill Noon</div><div><br></div></body></html>