Pajdeg
0.2.2
Pajdeg
|
An attachment between two parsers. More...
#include "PDDefines.h"
Go to the source code of this file.
Functions | |
PDParserAttachmentRef | PDParserAttachmentCreate (PDParserRef parser, PDParserRef foreignParser) |
PDObjectRef | PDParserAttachmentImportObject (PDParserAttachmentRef attachment, PDObjectRef foreignObject, const char **excludeKeys, PDInteger excludeKeysCount) |
An attachment between two parsers.
PDF parser attachment header file.
PDParserAttachmentRef PDParserAttachmentCreate | ( | PDParserRef | parser, |
PDParserRef | foreignParser | ||
) |
Create a foreign parser attachment, so that importing objects into parser from foreignParser becomes possible.
parser | The native parser, which will receive imported objects |
foreignParser | The foreign parser, which will provide existing objects in import operations |
PDObjectRef PDParserAttachmentImportObject | ( | PDParserAttachmentRef | attachment, |
PDObjectRef | foreignObject, | ||
const char ** | excludeKeys, | ||
PDInteger | excludeKeysCount | ||
) |
Iterate over the given foreign object recursively, creating appended objects for every indirect reference encountered. The resulting (new) indirect references, along with any direct references and associated stream (if any) are copied into a new object which is returned to the caller autoreleased.
A set of keys which should not be imported can be set. This set only applies to the object itself, and is not recursive. Thus, if an excluded key is encountered in one of the indirectly referenced objects, it will be included.
parser | The parser which should import the foreign object |
attachment | The attachment to a foreign parser |
foreignObject | The foreign object |
excludeKeys | Array of strings that should not be imported, if any |
excludeKeysCount | Size of excludeKeys array |