Pajdeg
0.2.2
Pajdeg
|
Definitions for the Pajdeg interface. More...
Go to the source code of this file.
Data Structures | |
struct | PDPoint |
struct | PDRect |
struct | PDSelection |
Macros | |
#define | PD_SUPPORT_ZLIB |
#define | PD_SUPPORT_CRYPTO |
#define | PD_WARNINGS |
#define | PD_ASSERTS |
#define | DEBUG_PDTYPES |
#define | __deprecated |
#define | PD_DEPRECATED(introduce_version, deprecate_version) __deprecated |
#define | PDIntegerFromString atol |
#define | PDRealFromString atof |
#define | PDSizeFromString atol |
#define | PDOffsetFromString atoll |
#define | PDRectFromOSRect(osr) (PDRect) {{osr.origin.x, osr.origin.y}, {osr.origin.x+osr.size.width, osr.origin.y+osr.size.height}} |
#define | PDRectToOSRect(rect) {{rect.a.x, rect.a.y}, {rect.b.x-rect.a.x, rect.b.y-rect.a.y}} |
#define | kPDFTypeStrings NULL, "/Page", "/Pages", "/Catalog", "/Annot", "/Font", "/FontDescriptor", "/Action" |
Typedefs | |
typedef long | PDInteger |
typedef float | PDReal |
typedef unsigned char | PDBool |
typedef size_t | PDSize |
typedef long long | PDOffset |
typedef struct PDPoint | PDPoint |
typedef struct PDRect | PDRect |
typedef const char ** | PDID |
typedef void(* | PDDeallocator) (void *ob) |
typedef void(* | PDSynchronizer) (void *parser, void *object, const void *syncInfo) |
typedef union PDType * | PDTypeRef |
typedef struct pd_stack * | pd_stack |
typedef struct PDArray * | PDArrayRef |
typedef void(* | PDHashIterator) (char *key, void *value, void *userInfo, PDBool *shouldStop) |
typedef struct PDDictionary * | PDDictionaryRef |
typedef struct PDDictionaryStack * | PDDictionaryStackRef |
typedef struct PDFontDictionary * | PDFontDictionaryRef |
typedef struct PDFont * | PDFontRef |
typedef struct PDCMap * | PDCMapRef |
typedef struct pd_crypto * | pd_crypto |
typedef struct PDStaticHash * | PDStaticHashRef |
typedef struct PDSplayTree * | PDSplayTreeRef |
typedef struct PDSelection * | PDSelectionRef |
typedef PDBool(* | PDTextSearchOperatorFunc) (PDSelectionRef selection) |
typedef struct PDObject * | PDObjectRef |
typedef struct PDPage * | PDPageRef |
typedef struct PDParserAttachment * | PDParserAttachmentRef |
typedef struct PDObjectStream * | PDObjectStreamRef |
typedef struct PDContentStream * | PDContentStreamRef |
typedef PDOperatorState(* | PDContentOperatorFunc) (PDContentStreamRef cs, void *userInfo, PDArrayRef args, pd_stack inState, pd_stack *outState) |
typedef PDInteger(* | PDInstancePrinter) (void *inst, char **buf, PDInteger offs, PDInteger *cap) |
typedef struct PDReference * | PDReferenceRef |
typedef struct PDNumber * | PDNumberRef |
typedef struct PDString * | PDStringRef |
typedef struct PDPipe * | PDPipeRef |
typedef struct PDTask * | PDTaskRef |
typedef PDTaskResult(* | PDTaskFunc) (PDPipeRef pipe, PDTaskRef task, PDObjectRef object, void *info) |
typedef struct PDParser * | PDParserRef |
typedef struct PDCatalog * | PDCatalogRef |
typedef struct PDTwinStream * | PDTwinStreamRef |
typedef struct PDStreamFilter * | PDStreamFilterRef |
typedef struct PDEnv * | PDEnvRef |
typedef struct PDState * | PDStateRef |
typedef struct PDOperator * | PDOperatorRef |
typedef struct PDScanner * | PDScannerRef |
typedef void(* | PDScannerBufFunc) (void *info, PDScannerRef scanner, char **buf, PDInteger *size, PDInteger req) |
typedef void(* | PDScannerPopFunc) (PDScannerRef scanner) |
Functions | |
void | PDNOP (void *) |
const char * | PDStringEncodingToIconvName (PDStringEncoding enc) |
Variables | |
PDInstancePrinter | PDInstancePrinters [] |
Definitions for the Pajdeg interface.
#define __deprecated |
The __deprecated macro should be available.
#define DEBUG_PDTYPES |
Adds header to all PDType objects and asserts that an object is a real PDType when retained/released.
Keeping this enabled is recommended, even for production code, unless it's very stable.
#define PD_ASSERTS |
Enable internal assertions.
The PD_ASSERTS directive turns on assertions. If something is misbehaving, turning this on is a good idea as it provides a crash point and/or clue as to what's not going right. Enabled implicitly if DEBUG is defined.
#define PD_DEPRECATED | ( | introduce_version, | |
deprecate_version | |||
) | __deprecated |
Deprecation Pseudo-Macro, used to mark functions or methods as deprecated as of a given version. The method also includes a version of introduction, indicating when the given method was added to Pajdeg.
-foo:
was deprecated in version 0.2.0, it will remain in the code base as a deprecated method through 0.3.0, 0.4.0, ... until 1.0.0, at which point it is removed from the code base completely (thus causing crashes for anyone going from 0.x to 1.0 without addressing deprecations).introduce_version | Version at which the deprecated method or function was added to Pajdeg |
deprecate_version | Version at which the deprecated method or function was first deprecated |
#define PD_SUPPORT_CRYPTO |
Support cryptography in PDFs. Currently includes RC4/MD5, but not AES.
#define PD_SUPPORT_ZLIB |
Support zlib compression for filters.
#define PD_WARNINGS |
Show internal warnings on stderr.
The PD_WARNINGS directive turns on printing of warnings to stderr. Enabled implicitly if DEBUG is defined.