Thu Apr 20 22:59:04 CEST 2006

CarbonMiniApp: PDF "printing"

I have again extended my sample Mac OS X/Carbon application. When you exit from the application, it will leave the contents of its window saved in PDF format in the file /tmp/CarbonMiniApp.pdf. I had to restructure the code a bit to save a lot of space. i simply call the same function for displaying the content of the windows twice - once with CGContextRef of the window on the screen and once with the context of the PDF file.

You can download source code and also the final diskimage and even its PDF output.

Posted by Pavel | Permanent link | File under: OpenOffice.org, Mac OS X