2011-11-24 61 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

相關問題