Vanilla.PDF  1.6.0
Cross-platform toolkit for creating and modifying PDF documents
c_page_tree.h
Go to the documentation of this file.
1#ifndef _C_PAGE_TREE_H
2#define _C_PAGE_TREE_H
3
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
36 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_GetPageCount(PageTreeHandle* handle, size_type* result);
37
41 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_GetPage(PageTreeHandle* handle, size_type at, PageObjectHandle** result);
42
50 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_InsertPage(PageTreeHandle* handle, size_type at, PageObjectHandle* page);
51
57 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_AppendPage(PageTreeHandle* handle, PageObjectHandle* page);
58
64 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_RemovePage(PageTreeHandle* handle, size_type at);
65
69 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_ToUnknown(PageTreeHandle* handle, IUnknownHandle** result);
70
74 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_FromUnknown(IUnknownHandle* handle, PageTreeHandle** result);
75
80 VANILLAPDF_API error_type CALLING_CONVENTION PageTree_Release(PageTreeHandle* handle);
81
84#ifdef __cplusplus
85};
86#endif
87
88#endif /* _C_PAGE_TREE_H */
This file contains macro declarations for importing and exporting symbols from library boundaries.
This file contains all type forward declarations returned by the library API.
This file contains types and constants used as parameters or return values.
Base class for reference counting.
The leaves of the page tree are page objects, each of which is a dictionary specifying the attributes...
The pages of a document are accessed through a structure known as the page tree, which defines the or...
error_type CALLING_CONVENTION PageTree_ToUnknown(PageTreeHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION PageTree_Release(PageTreeHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION PageTree_FromUnknown(IUnknownHandle *handle, PageTreeHandle **result)
Convert IUnknownHandle to PageTreeHandle.
error_type CALLING_CONVENTION PageTree_AppendPage(PageTreeHandle *handle, PageObjectHandle *page)
Adds a new page at the end of the page tree, after its current last element.
error_type CALLING_CONVENTION PageTree_RemovePage(PageTreeHandle *handle, size_type at)
Removed a page at index at.
error_type CALLING_CONVENTION PageTree_InsertPage(PageTreeHandle *handle, size_type at, PageObjectHandle *page)
Insert new page at index at.
error_type CALLING_CONVENTION PageTree_GetPageCount(PageTreeHandle *handle, size_type *result)
Get total number of pages in current document.
error_type CALLING_CONVENTION PageTree_GetPage(PageTreeHandle *handle, size_type at, PageObjectHandle **result)
Get page at index at.
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62