PDF SDK Documentation

Comprehensive Guide for Developers: Features, Integration, and API Reference

Loading...
Searching...
No Matches
types.h File Reference

Common types. More...

#include <pdfsdk/math_types.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Classes

struct  PDDateTime
 

Macros

#define kPDAfterLast   ((size_t)-1)
 
#define kPDColorNone   ((PDColorValue)0x00000000)
 
#define PDF_COLOR_GET_A(cv)
 
#define PDF_COLOR_GET_R(cv)
 
#define PDF_COLOR_GET_G(cv)
 
#define PDF_COLOR_GET_B(cv)
 
#define PDF_MAKE_COLOR(A, R, G, B)
 

Typedefs

typedef uint32_t PDColorValue
 
typedef struct PDActionRec_ * PDAction
 
typedef struct PDAnnotRec_ * PDAnnot
 
typedef struct PDDestRec_ * PDDest
 
typedef struct PDFileSpecRec_ * PDFileSpec
 
typedef struct PDDocRec_ * PDDoc
 

Enumerations

enum  PDRotate { kPDRotate_0 = 0 , kPDRotate_90 = 90 , kPDRotate_180 = 180 , kPDRotate_270 = 270 }
 Specifies degrees of rotation. More...
 

Detailed Description

Common types.

Macro Definition Documentation

◆ PDF_COLOR_GET_A

#define PDF_COLOR_GET_A ( cv)
Value:
((uint8_t)((cv) >> 24))

◆ PDF_COLOR_GET_B

#define PDF_COLOR_GET_B ( cv)
Value:
((uint8_t)((cv) >> 0))

◆ PDF_COLOR_GET_G

#define PDF_COLOR_GET_G ( cv)
Value:
((uint8_t)((cv) >> 8))

◆ PDF_COLOR_GET_R

#define PDF_COLOR_GET_R ( cv)
Value:
((uint8_t)((cv) >> 16))

◆ PDF_MAKE_COLOR

#define PDF_MAKE_COLOR ( A,
R,
G,
B )
Value:
(((((uint32_t)(A)) & 0xFF) << 24) | \
((((uint32_t)(R)) & 0xFF) << 16) | \
((((uint32_t)(G)) & 0xFF) << 8) | \
((((uint32_t)(B)) & 0xFF) << 0))

Enumeration Type Documentation

◆ PDRotate

enum PDRotate

Specifies degrees of rotation.

Enumerator
kPDRotate_0 

No rotation.

kPDRotate_90 

90 degree rotation.

kPDRotate_180 

180 degree rotation.

kPDRotate_270 

270 degree rotation.