[Pythonmac-SIG] Python, Panter and Quartz

Pascal Oberndoerfer p.oberndoerfer at urheberrecht.org
Mon Oct 13 07:02:44 EDT 2003

Hans verschooten at hansv at net4all.be:

> Following snippet was found on the Apple site
> <http://www.apple.com/macosx/features/unix/>
> "Python users can also script the powerful Quartz compositing engine."
> Can anybody give more info on this, what does it mean, what can it be
> used for,...
> Any clarification is much appreciated,
> Hans verschooten

Some info from Apple's Technology Brief, Mac OS X for UNIX Users:

"In addition, Panther provides CoreGraphics bindings for Python - a new
approach for command-line scripts and server processes to manipulate
graphics. This rich set of Python bindings was created using the open source
WIG interface compiler (Simplified Wrapper and Interface Generator, for
creating scriptable APIs from C functions). It can access the PDF-based
Quartz graphics engine and QuickTime image formats (such as PNG, JPEG, TIFF,
GIF), as well as some Cocoa renderings. The scripts can perform complex
manipulations on PDF and images, such as:
- Render PDF, HTML, and RTF documents into a bitmap (implicitly using the
Cocoa NSText and WebKit) that could be streamed from the server to the
client (for example, new images for different zoom levels - useful for
- Add content to a specific page in a PDF document.
- Use HTML forms that feed their input through Python to generate a PDF, for
a receipt or invoice of the entered data.
- Generate an n-up printed preview of a multipage PDF document.
- Create a single image or a PDF document as an index print from multiple
original images.
- Remove or add color profiles to images (like sips).
- Soft-proof images by applying an ICC profile."



More information about the Pythonmac-SIG mailing list