Vanilla.PDF  1.4.1
Cross-platform toolkit for creating and modifying PDF documents
c_content_operation.h
Go to the documentation of this file.
1 #ifndef _C_CONTENT_OPERATION_H
2 #define _C_CONTENT_OPERATION_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 
73  typedef enum {
79  ContentOperationType_LineWidth,
80  ContentOperationType_LineCap,
81  ContentOperationType_LineJoin,
82  ContentOperationType_MiterLimit,
83  ContentOperationType_DashPattern,
84  ContentOperationType_ColorRenderingIntent,
85  ContentOperationType_Flatness,
86  ContentOperationType_GraphicsState,
87  ContentOperationType_SaveGraphicsState,
88  ContentOperationType_RestoreGraphicsState,
89  ContentOperationType_TransformationMatrix,
90  ContentOperationType_BeginSubpath,
91  ContentOperationType_Line,
92  ContentOperationType_FullCurve,
93  ContentOperationType_FinalCurve,
94  ContentOperationType_InitialCurve,
95  ContentOperationType_CloseSubpath,
96  ContentOperationType_Rectangle,
97  ContentOperationType_Stroke,
98  ContentOperationType_CloseAndStroke,
99  ContentOperationType_FillPathNonzero,
100  ContentOperationType_FillPathCompatibility,
101  ContentOperationType_FillPathEvenOdd,
102  ContentOperationType_FillStrokeNonzero,
103  ContentOperationType_FillStrokeEvenOdd,
104  ContentOperationType_CloseFillStrokeNonzero,
105  ContentOperationType_CloseFillStrokeEvenOdd,
106  ContentOperationType_EndPath,
107  ContentOperationType_ClipPathNonzero,
108  ContentOperationType_ClipPathEvenOdd,
109  ContentOperationType_BeginText,
110  ContentOperationType_EndText,
111  ContentOperationType_CharacterSpacing,
112  ContentOperationType_WordSpacing,
113  ContentOperationType_HorizontalScaling,
114  ContentOperationType_Leading,
115 
121  ContentOperationType_TextRenderingMode,
122  ContentOperationType_TextRise,
123  ContentOperationType_TextTranslate,
124  ContentOperationType_TextTranslateLeading,
125  ContentOperationType_TextMatrix,
126  ContentOperationType_TextNextLine,
127 
133 
139  ContentOperationType_TextNextLineShow,
140  ContentOperationType_TextNextLineShowSpacing,
141  ContentOperationType_SetCharWidth,
142  ContentOperationType_SetCacheDevice,
143  ContentOperationType_ColorSpaceStroke,
144  ContentOperationType_ColorSpaceNonstroke,
145  ContentOperationType_SetColorStroke,
146  ContentOperationType_SetColorStrokeExtended,
147  ContentOperationType_SetColorNonstroke,
148  ContentOperationType_SetColorNonstrokeExtended,
149  ContentOperationType_SetStrokingColorSpaceGray,
150  ContentOperationType_SetNonstrokingColorSpaceGray,
151  ContentOperationType_SetStrokingColorSpaceRGB,
152  ContentOperationType_SetNonstrokingColorSpaceRGB,
153  ContentOperationType_SetStrokingColorSpaceCMYK,
154  ContentOperationType_SetNonstrokingColorSpaceCMYK,
155  ContentOperationType_ShadingPaint,
156  ContentOperationType_BeginInlineImageObject,
157  ContentOperationType_BeginInlineImageData,
158  ContentOperationType_EndInlineImageObject,
159  ContentOperationType_InvokeXObject,
160  ContentOperationType_DefineMarkedContentPoint,
161  ContentOperationType_DefineMarkedContentPointWithPropertyList,
162  ContentOperationType_BeginMarkedContentSequence,
163  ContentOperationType_BeginMarkedContentSequenceWithPropertyList,
164  ContentOperationType_EndMarkedContentSequence,
165  ContentOperationType_BeginCompatibilitySection,
166  ContentOperationType_EndCompatibilitySection
168 
169 
178  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_GetType(ContentOperationHandle* handle, ContentOperationType* result);
179 
183  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_ToGeneric(ContentOperationHandle* handle, ContentOperationGenericHandle** result);
184 
188  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_ToTextFont(ContentOperationHandle* handle, ContentOperationTextFontHandle** result);
189 
193  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_ToTextShow(ContentOperationHandle* handle, ContentOperationTextShowHandle** result);
194 
199 
203  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_ToBeginText(ContentOperationHandle* handle, ContentOperationBeginTextHandle** result);
204 
208  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_ToEndText(ContentOperationHandle* handle, ContentOperationEndTextHandle** result);
209 
214  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_Release(ContentOperationHandle* handle);
215 
226  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationGeneric_GetOperator(ContentOperationGenericHandle* handle, ContentOperatorHandle** result);
227 
231  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationGeneric_GetOperandsSize(ContentOperationGenericHandle* handle, size_type* result);
232 
236  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationGeneric_GetOperandAt(ContentOperationGenericHandle* handle, size_type at, ObjectHandle** result);
237 
242  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationGeneric_Release(ContentOperationGenericHandle* handle);
243 
254  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationTextShow_GetValue(ContentOperationTextShowHandle* handle, StringObjectHandle** result);
255 
259  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationTextShow_SetValue(ContentOperationTextShowHandle* handle, StringObjectHandle* data);
260 
265  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationTextShow_Release(ContentOperationTextShowHandle* handle);
266 
279 
290 
296 
310  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationTextFont_GetName(ContentOperationTextFontHandle* handle, NameObjectHandle** result);
311 
318  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationTextFont_SetName(ContentOperationTextFontHandle* handle, NameObjectHandle* data);
319 
325  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationTextFont_GetScale(ContentOperationTextFontHandle* handle, IntegerObjectHandle** result);
326 
333 
338  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationTextFont_Release(ContentOperationTextFontHandle* handle);
339 
351  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperationEndText_Release(ContentOperationEndTextHandle* handle);
352 
355 #ifdef __cplusplus
356 };
357 #endif
358 
359 #endif /* _C_CONTENT_OPERATION_H */
error_type ContentOperation_ToTextFont(ContentOperationHandle *handle, ContentOperationTextFontHandle **result)
Reinterpret current object as ContentOperationTextFontHandle.
ContentOperationType
Available content operation types.
Definition: c_content_operation.h:73
Starts a new ContentObjectTextHandle section.
An operator is a PDF keyword specifying some action that shall be performed, such as painting a graph...
error_type ContentOperationTextShowArray_GetValue(ContentOperationTextShowArrayHandle *handle, ArrayObjectHandle **result)
One or more text strings to be shown.
Unresolved operation often containing unknown operator.
Definition: c_content_operation.h:78
error_type ContentOperationEndText_Release(ContentOperationEndTextHandle *handle)
Decrement the internal reference counter.
Unresolved operation often containing unknown operator.
error_type ContentOperationTextFont_SetScale(ContentOperationTextFontHandle *handle, IntegerObjectHandle *data)
Set new font scaling.
error_type ContentOperationTextFont_Release(ContentOperationTextFontHandle *handle)
Decrement the internal reference counter.
Represents integer values.
error_type ContentOperation_ToBeginText(ContentOperationHandle *handle, ContentOperationBeginTextHandle **result)
Reinterpret current object as ContentOperationBeginTextHandle.
This file contains all type forward declarations returned by the library API.
error_type ContentOperationGeneric_GetOperandAt(ContentOperationGenericHandle *handle, size_type at, ObjectHandle **result)
Get operand at location at.
error_type ContentOperation_GetType(ContentOperationHandle *handle, ContentOperationType *result)
Get derived type of current object.
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62
error_type ContentOperationTextShowArray_SetValue(ContentOperationTextShowArrayHandle *handle, ArrayObjectHandle *data)
Set new text strings to be shown.
error_type ContentOperationGeneric_GetOperandsSize(ContentOperationGenericHandle *handle, size_type *result)
Get number of operands belonging to the operator.
Set the text font and the text font size.
Definition: c_content_operation.h:120
Represents array of mixed type elements.
error_type ContentOperationTextShow_Release(ContentOperationTextShowHandle *handle)
Decrement the internal reference counter.
Show one or more text strings, allowing individual glyph positioning.
Definition: c_content_operation.h:138
error_type ContentOperation_ToEndText(ContentOperationHandle *handle, ContentOperationEndTextHandle **result)
Reinterpret current object as ContentOperationEndTextHandle.
error_type ContentOperationGeneric_Release(ContentOperationGenericHandle *handle)
Decrement the internal reference counter.
Set the text font and the text font size.
Base class for syntactic tokens.
error_type ContentOperationTextFont_GetName(ContentOperationTextFontHandle *handle, NameObjectHandle **result)
Get name of the font to be set.
error_type ContentOperationTextShowArray_Release(ContentOperationTextShowArrayHandle *handle)
Decrement the internal reference counter.
error_type ContentOperationTextFont_SetName(ContentOperationTextFontHandle *handle, NameObjectHandle *data)
Set new font name.
error_type ContentOperationTextFont_GetScale(ContentOperationTextFontHandle *handle, IntegerObjectHandle **result)
Get current font scaling.
Show one or more text strings, allowing individual glyph positioning.
error_type ContentOperation_ToTextShowArray(ContentOperationHandle *handle, ContentOperationTextShowArrayHandle **result)
Reinterpret current object as ContentOperationTextShowArrayHandle.
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...
Terminates the ContentObjectTextHandle started with ContentOperationBeginTextHandle.
Show a text string.
Definition: c_content_operation.h:132
error_type ContentOperation_ToGeneric(ContentOperationHandle *handle, ContentOperationGenericHandle **result)
Reinterpret current object as ContentOperationGenericHandle.
error_type ContentOperation_ToTextShow(ContentOperationHandle *handle, ContentOperationTextShowHandle **result)
Reinterpret current object as ContentOperationTextShowHandle.
Atomic content operation.
error_type ContentOperationGeneric_GetOperator(ContentOperationGenericHandle *handle, ContentOperatorHandle **result)
Get operator from unknown operation.
This file contains types and constants used as parameters or return values.
error_type ContentOperationTextShow_SetValue(ContentOperationTextShowHandle *handle, StringObjectHandle *data)
Set a new text string to be shown.
Reprsents human readable text.
Represents unique name references in document.
error_type ContentOperationTextShow_GetValue(ContentOperationTextShowHandle *handle, StringObjectHandle **result)
A text string to be shown.
Show a text string.
error_type ContentOperation_Release(ContentOperationHandle *handle)
Decrement the internal reference counter.