CGPDF< ...> -二传手在哪里? [英] CGPDF<...> - where are the setters?
问题描述
是否可以使用CGPDF创建PDF对象(例如,具有自定义PDF生产者/消费者/查看者需要的参数的PDF字典)还是我必须编写自己的解析器并创建新的预告片,外部参照等,以便将新对象添加到PDF?据我了解,CG在创建PDF时会将其图形上下文的所有图形调用转换为正确的PDF副本-但我有应存储在PDF中的自定义数据/对象(例如用于注释,线程等),但显然
Is there any way to create PDF objects (e.g. a PDF-dictionary with parameters that are needed by a custom PDF producer/consumer/viewer) with CGPDF<...> or do I have to write my own parser and create new trailers, xref etc. in order to add new objects to the PDF? As I understand it, CG translates all drawing calls of its graphics context into the correct PDF counterparts when creating a PDF - but I have custom data/objects (e.g. for annotations, threads etc.) that should be stored in the PDF but that obviously can't be automatically created by CG.
我只能找到所有这些吸气剂
I can only find all these getters
从a中获取数据字典
CGPDFDictionaryGetArray
CGPDFDictionaryGetBoolean
CGPDFDictionaryGetCount
CGPDFDictionaryGetDictionary
CGPDFDictionaryGetInteger < br>
CGPDFDictionaryGetName
CGPDFDictionaryGetNumber
CGPDFDictionaryGetObject
CGPDFDictionaryGetStream
CGPDFDictionaryGetString
CGPDFDictionaryGetArray
CGPDFDictionaryGetBoolean
CGPDFDictionaryGetCount
CGPDFDictionaryGetDictionary
CGPDFDictionaryGetInteger
CGPDFDictionaryGetName
CGPDFDictionaryGetNumber
CGPDFDictionaryGetObject
CGPDFDictionaryGetStream
CGPDFDictionaryGetString
任何帮助将不胜感激?
顺便说一句-有谁知道一些链接,在这里我可以找到一个可以在现实世界中实现的目标函数及其回调。
And by the way - does anyone know some links where I can find out what one can achieve in the real world with this function and its callback.
CGPDFDictionaryApplyFunction
CGPDFDictionaryApplierFunction
CGPDFDictionaryApplyFunction
CGPDFDictionaryApplierFunction
也许是一个示例应用程序可以看到它的作用?
Maybe a sample application to see it in action?
Thx预先
推荐答案
没有设置器。 CGPDF API是只读的。
CGPDFDictionaryApplyFunction可以让您枚举字典对象中的条目。如果想了解现实世界的用法,PDFKitten框架会在几个地方使用此功能。
There are no setters. The CGPDF API is read only.
The CGPDFDictionaryApplyFunction simply lets you enumerate the entries in a dictionary object. The PDFKitten framework uses this function in a few places if you want to see real world usage.
这篇关于CGPDF< ...> -二传手在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!