View Full Version : Two views into one PDF?

Oct 27, 2007, 05:43 AM
Hi, in my Cocoa app i've got a custom view and a table view on the same window. i'd like to export both of them together into a single PDF file (on one page). how can this be achieved? i have no problem exporting a single view into a pdf, but there's nothing in the API to help me merge them.

Oct 27, 2007, 10:07 AM
Check out PDFKit (http://developer.apple.com/cocoa/pdfkit.html). It's a framework in 10.4 and 10.5 that lets you work with PDFs. It has some nice new features in 10.5 as well.

Edit: actually I'm not sure how much PDFKit would help. What you could do is just create a new view in your code, and then draw your tableview and custom view into this new view, and save that view to PDF.