Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

rand0m3r

macrumors regular
Original poster
Jun 30, 2006
115
1
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.
 
Check out PDFKit. 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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.