Vanilla.PDF  1.5.2
Cross-platform toolkit for creating and modifying PDF documents
c_page_object.h
Go to the documentation of this file.
1 #ifndef _C_PAGE_OBJECT_H
2 #define _C_PAGE_OBJECT_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 
42  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_CreateFromDocument(DocumentHandle* handle, PageObjectHandle** result);
43 
47  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_CreateFromObject(DictionaryObjectHandle* handle, PageObjectHandle** result);
48 
54  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_GetContents(PageObjectHandle* handle, PageContentsHandle** result);
55 
60  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_GetParent(PageObjectHandle* handle, PageTreeHandle** result);
61 
72  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_GetResources(PageObjectHandle* handle, ResourceDictionaryHandle** result);
73 
80  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_GetAnnotations(PageObjectHandle* handle, PageAnnotationsHandle** result);
81 
89  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_GetMediaBox(PageObjectHandle* handle, RectangleHandle** result);
90 
94  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_ToUnknown(PageObjectHandle* handle, IUnknownHandle** result);
95 
99  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_FromUnknown(IUnknownHandle* handle, PageObjectHandle** result);
100 
105  VANILLAPDF_API error_type CALLING_CONVENTION PageObject_Release(PageObjectHandle* handle);
106 
109 #ifdef __cplusplus
110 };
111 #endif
112 
113 #endif /* _C_PAGE_OBJECT_H */
Represents rectangle in 2D space.
The leaves of the page tree are page objects, each of which is a dictionary specifying the attributes...
error_type PageObject_FromUnknown(IUnknownHandle *handle, PageObjectHandle **result)
Convert IUnknownHandle to PageObjectHandle.
error_type PageObject_ToUnknown(PageObjectHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type PageObject_Release(PageObjectHandle *handle)
Decrement the internal reference counter.
The pages of a document are accessed through a structure known as the page tree, which defines the or...
A content stream is a PDF stream object whose data consists of a sequence of instructions describing ...
This file contains all type forward declarations returned by the library API.
error_type PageObject_GetContents(PageObjectHandle *handle, PageContentsHandle **result)
A content stream (see 7.8.2, "Content Streams") that shall describe the contents of this page...
A content stream's named resources shall be defined by a resource dictionary, which shall enumerate t...
error_type PageObject_GetResources(PageObjectHandle *handle, ResourceDictionaryHandle **result)
A dictionary containing any resources required by the page (see 7.8.3, "Resource Dictionaries").
error_type PageObject_CreateFromDocument(DocumentHandle *handle, PageObjectHandle **result)
Creates a new instance.
A dictionary object is an associative table containing pairs of objects.
error_type PageObject_GetParent(PageObjectHandle *handle, PageTreeHandle **result)
The page tree node that is the immediate parent of this page object.
An array of annotation dictionaries that shall contain indirect references to all AnnotationHandle as...
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
Represents high-level file access handle.
This file contains macro declarations for importing and exporting symbols from library boundaries...
error_type PageObject_CreateFromObject(DictionaryObjectHandle *handle, PageObjectHandle **result)
Creates a new instance.
This file contains types and constants used as parameters or return values.
error_type PageObject_GetAnnotations(PageObjectHandle *handle, PageAnnotationsHandle **result)
An array of annotation dictionaries that shall contain indirect references to all annotations associa...
Base class for reference counting.
error_type PageObject_GetMediaBox(PageObjectHandle *handle, RectangleHandle **result)
A rectangle expressed in default user space units, that shall define the boundaries of the physical m...