Two views into one PDF?

Discussion in 'Mac Programming' started by rand0m3r, Oct 27, 2007.

  1. macrumors regular

    Jun 30, 2006
    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.
  2. Moderator emeritus


    Jun 15, 2000
    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.

Share This Page