On Jan 30, 2009, at 3:24 PM, Jim Skibbie wrote:
...
page_rect = pdf.getMediaBox( page_number )
page_width = int(page_rect.getWidth())
page_height = int(page_rect.getHeight())
print "%d \r\n%d" % (page_width, page_height)
Under OS 10.5, this script now uses a deprecated function of
CoreGraph
I have a script that needs to get the height and width dimensions of the
media box of a PDF using Applescript. In OS X 10.4, I was using the
following:
> set shellScript to "python " & quoted form of PythonPath & " " & POSIXThisFile
> set dims to every paragraph of (do shell script shellScript)