问题
There is some tutorial about how to create a pdf using cocoa? I can't find anything. I looked for it on the web and it seems that I need Quartz to do it, but there aren't practical examples.
Can you help me? Thank you in advance.
—Albé
回答1:
See Cocoa Printing Architecture documentation. Basically, any printing operation creates a PDF and, in general, the best way to create PDF documents is to implement custom printing layouts.
Alternatively, NSView has printing related methods for grabbing the PDF within a rectangle.
来源:https://stackoverflow.com/questions/1976507/create-pdf-using-cocoa