使用可可创建pdf? [英] Create pdf using cocoa?

查看:109
本文介绍了使用可可创建pdf?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一些关于如何使用可可创建pdf的教程?我找不到任何东西。我在网上寻找它,似乎我需要Quartz来做,但没有实际的例子。

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é

推荐答案

href =http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/Printing/Concepts/architecture.html =nofollow noreferrer> Cocoa Printing Architecture 文档。基本上,任何打印操作都会创建一个PDF,一般来说,创建PDF文档的最佳方式是实现自定义打印布局。

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.

或者, NSView 有与打印相关的抓取PDF的方法矩形。

Alternatively, NSView has printing related methods for grabbing the PDF within a rectangle.

这篇关于使用可可创建pdf?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆