PDF SDK Documentation

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

Loading...
Searching...
No Matches
collection.h
Go to the documentation of this file.
1// Copyright (c) 2009-2025 Avanquest Software. All rights reserved.
2
3#ifndef PDFSDK_CORE_COLLECTION_H_INCLUDED_
4#define PDFSDK_CORE_COLLECTION_H_INCLUDED_
5
11#include <pdfsdk/core/api_macro.h>
12#include <pdfsdk/core/atoms.h>
14#include <pdfsdk/errors.h>
15#include <pdfsdk/math_types.h>
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22typedef struct PDCollectionRec_* PDCollection;
23
24typedef struct {
25 PDAtom name;
26 PDAtom subtype;
27 wchar_t* fieldName;
28 size_t fieldNameLength;
29 bool isVisible;
30 bool isEditable;
32
33typedef struct {
34 PDAtom fieldName;
35 bool isAscending;
37
38PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionGetInitialDocument(PDCollection collection, wchar_t* buffer, size_t bufSize, size_t* pSize);
39PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionSetInitialDocument(PDCollection collection, const wchar_t* buffer, size_t bufSize);
40
41PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionSetViewMode(PDCollection collection, PDAtom view);
42PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionGetViewMode(PDCollection collection, PDAtom* view);
43
44PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDDocGetCollection(PDDoc doc, PDCollection* pCollection);
45PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDDocCreateCollection(PDDoc doc, PDCollection* pCollection);
46
47PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionRemoveSchemaFieldRecord(PDCollection collection, PDAtom schemaFieldName);
48PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionAddSchemaFieldRecord(PDCollection collection, const PDSchemaFieldRecord* schemaRecord, const int* order);
49// PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionGetSchemaRecord(PDCollection collection, PDSchemaFieldRecord* schemaRecord, const int* order);
50
51PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionGetSortRecord(PDCollection collection, PDCollectionSortRecord* sortRec, size_t bufferSize, size_t* pSize);
52PDF_CORE_API PDErrCode PDFSDK_CALLCONV PDCollectionSetSortRecord(PDCollection collection, const PDCollectionSortRecord* sortRec, size_t bufferSize);
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif // PDFSDK_CORE_COLLECTION_H_INCLUDED_
Atom API.
Document API.
Error codes.
int32_t PDErrCode
Definition errors.h:44
Math types.
Progress Monitor API.
Definition collection.h:33
Definition collection.h:24