pdf = CGPDFDocumentCreateWithProvider(CGDataProviderCreateWithFilename(aFile))
pdf.getTrimBox(pageNumber).getWidth()

I get warning output like:

Wed Mar 3 21:48:07 element.sd.cox.net Python[24469] <Error>: The function `CGPDFDocumentGetTrimBox' 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.

However from doing a dir(pdf) I don't see the preferred method exposed through the python bindings.

This is 10.5.8 with stock python2.5

in 10.6.2 /System/Library/Frameworks/Python.framework/Versions/2.6/ Extras/lib/python/CoreGraphics/_CoreGraphics.so isn't even 64bit

I don't use this stuff often, but are python bindings to OS X to libraries like this withering on the vine?

-Preston

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to