PDF SDK Documentation

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

Loading...
Searching...
No Matches
atoms.h
Go to the documentation of this file.
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CORE_ATOMS_H_INCLUDED_
4#define PDFSDK_CORE_ATOMS_H_INCLUDED_
5
11#include <pdfsdk/core/api_macro.h>
12#include <pdfsdk/errors.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
18typedef uint32_t PDAtom;
19
24enum {
25 kPDAtomNull = (uint32_t)-1,
26 kPDAtomEmpty = 0,
27
28#define PDF_ATOM_BUILTIN_(X) kPDAtom_##X,
29#define PDF_ATOM_BUILTIN_V_(X, Name) kPDAtom_##X,
30#include <pdfsdk/core/atom_builtins.inl>
31#undef PDF_ATOM_BUILTIN_
32#undef PDF_ATOM_BUILTIN_V_
33};
34
35PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDAtomPutString(const char* string, PDAtom* patom);
36PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDAtomGetString(PDAtom atom, const char** pstring);
37
38#ifdef __cplusplus
39}
40#endif
41
42#endif // PDFSDK_CORE_ATOMS_H_INCLUDED_
Error codes.
int32_t PDErrCode
Definition errors.h:44