Create pdf using cocoa?

旧城冷巷雨未停 提交于 2019-12-08 09:14:16

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!