PDF SDK Documentation

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

Loading...
Searching...
No Matches
types.h
Go to the documentation of this file.
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CORE_TYPES_H_INCLUDED_
4#define PDFSDK_CORE_TYPES_H_INCLUDED_
5
11#include <pdfsdk/math_types.h>
12
13#include <stdbool.h>
14#include <stddef.h>
15#include <stdint.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#define kPDAfterLast ((size_t)-1)
22
23typedef struct {
24 int year;
25 int month;
26 int day;
27 int hour;
28 int minute;
29 int second;
30 int tz_sign;
31 int tz_hour;
34
38typedef enum {
43} PDRotate;
44
45typedef uint32_t PDColorValue;
46#define kPDColorNone ((PDColorValue)0x00000000)
47
48#define PDF_COLOR_GET_A(cv) ((uint8_t)((cv) >> 24))
49#define PDF_COLOR_GET_R(cv) ((uint8_t)((cv) >> 16))
50#define PDF_COLOR_GET_G(cv) ((uint8_t)((cv) >> 8))
51#define PDF_COLOR_GET_B(cv) ((uint8_t)((cv) >> 0))
52#define PDF_MAKE_COLOR(A, R, G, B) (((((uint32_t)(A)) & 0xFF) << 24) | \
53 ((((uint32_t)(R)) & 0xFF) << 16) | \
54 ((((uint32_t)(G)) & 0xFF) << 8) | \
55 ((((uint32_t)(B)) & 0xFF) << 0))
56
57typedef struct PDActionRec_* PDAction;
58typedef struct PDAnnotRec_* PDAnnot;
59typedef struct PDDestRec_* PDDest;
60typedef struct PDFileSpecRec_* PDFileSpec;
61typedef struct PDDocRec_* PDDoc;
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif // PDFSDK_CORE_TYPES_H_INCLUDED_
Math types.
Definition types.h:23
int month
The month in the range 1..12.
Definition types.h:25
int tz_sign
The "sign" of the time zone, (0) means UTC, (-1) is west, (+1) is east.
Definition types.h:30
int year
The year.
Definition types.h:24
int tz_hour
The time zone hour in the range 0..23.
Definition types.h:31
int day
The day of the month in the range 1..31.
Definition types.h:26
int hour
The hour in the range 0..23.
Definition types.h:27
int tz_minute
The time zone minute in the range 0..59.
Definition types.h:32
int second
The second in the range 0..59.
Definition types.h:29
int minute
The minute in the range 0..59.
Definition types.h:28
PDRotate
Specifies degrees of rotation.
Definition types.h:38
@ kPDRotate_0
Definition types.h:39
@ kPDRotate_90
Definition types.h:40
@ kPDRotate_180
Definition types.h:41
@ kPDRotate_270
Definition types.h:42