2011-11-24 55 views

回答

1

CGPDFContextCreate需要一个字典,您可以在其中发送密码作为其中一个属性。

为CGPDFContxtCreate你会在找到苹果的参考文件的细节:

http://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGPDFContext/Reference/reference.html#//apple_ref/c/func/CGPDFContextCreate

你会在苹果的文档在这里找到密码设置信息:

http://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGPDFContext/Reference/reference.html#//apple_ref/doc/constant_group/Auxiliary_Dictionary_Keys

+0

注UIGraphicsBeginPDFContext []方法采用相同的字典(尽管是'NSDictionary *'而不是'CFDictionaryRef'),对于喜欢使用Objective-C对应方法的人消耗臭氧层物质。 – JAB

相关问题