Vanilla.PDF  1.3.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 
4 #include "vanillapdf/c_export.h"
5 #include "vanillapdf/c_handles.h"
6 #include "vanillapdf/c_values.h"
7 
8 #ifdef __cplusplus
9 extern "C"
10 {
11 #endif
12 
37  VANILLAPDF_API error_type CALLING_CONVENTION PageTree_GetPageCount(PageTreeHandle* handle, size_type* result);
38 
42  VANILLAPDF_API error_type CALLING_CONVENTION PageTree_GetPage(PageTreeHandle* handle, size_type at, PageObjectHandle** result);
43 
51  VANILLAPDF_API error_type CALLING_CONVENTION PageTree_InsertPage(PageTreeHandle* handle, size_type at, PageObjectHandle* page);
52 
58  VANILLAPDF_API error_type CALLING_CONVENTION PageTree_AppendPage(PageTreeHandle* handle, PageObjectHandle* page);
59 
65  VANILLAPDF_API error_type CALLING_CONVENTION PageTree_RemovePage(PageTreeHandle* handle, size_type at);
66 
71  VANILLAPDF_API error_type CALLING_CONVENTION PageTree_Release(PageTreeHandle* handle);
72 
75 #ifdef __cplusplus
76 };
77 #endif
78 
79 #endif /* _C_PAGE_TREE_H */
error_type PageTree_Release(PageTreeHandle *handle)
Decrement the internal reference counter.
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 PageTree_RemovePage(PageTreeHandle *handle, size_type at)
Removed a page at index at.
This file contains all type forward declarations returned by the library API.
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62
error_type PageTree_InsertPage(PageTreeHandle *handle, size_type at, PageObjectHandle *page)
Insert new page at index at.
error_type PageTree_AppendPage(PageTreeHandle *handle, PageObjectHandle *page)
Adds a new page at the end of the page tree, after its current last element.
error_type 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
This file contains macro declarations for importing and exporting symbols from library boundaries...
This file contains types and constants used as parameters or return values.
error_type PageTree_GetPageCount(PageTreeHandle *handle, size_type *result)
Get total number of pages in current document.