Vanilla.PDF  1.3.0
Cross-platform toolkit for creating and modifying PDF documents
c_content_operator.h
Go to the documentation of this file.
1 #ifndef _C_CONTENT_OPERATOR_H
2 #define _C_CONTENT_OPERATOR_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 
32  typedef enum {
37  ContentOperatorType_LineWidth,
38  ContentOperatorType_LineCap,
39  ContentOperatorType_LineJoin,
40  ContentOperatorType_MiterLimit,
41  ContentOperatorType_DashPattern,
42  ContentOperatorType_ColorRenderingIntent,
43  ContentOperatorType_Flatness,
44  ContentOperatorType_GraphicsState,
45  ContentOperatorType_SaveGraphicsState,
46  ContentOperatorType_RestoreGraphicsState,
47  ContentOperatorType_TransformationMatrix,
48  ContentOperatorType_BeginSubpath,
49  ContentOperatorType_Line,
50  ContentOperatorType_FullCurve,
51  ContentOperatorType_FinalCurve,
52  ContentOperatorType_InitialCurve,
53  ContentOperatorType_CloseSubpath,
54  ContentOperatorType_Rectangle,
55  ContentOperatorType_Stroke,
56  ContentOperatorType_CloseAndStroke,
57  ContentOperatorType_FillPathNonzero,
58  ContentOperatorType_FillPathCompatibility,
59  ContentOperatorType_FillPathEvenOdd,
60  ContentOperatorType_FillStrokeNonzero,
61  ContentOperatorType_FillStrokeEvenOdd,
62  ContentOperatorType_CloseFillStrokeNonzero,
63  ContentOperatorType_CloseFillStrokeEvenOdd,
64  ContentOperatorType_EndPath,
65  ContentOperatorType_ClipPathNonzero,
66  ContentOperatorType_ClipPathEvenOdd,
67 
73 
79  ContentOperatorType_CharacterSpacing,
80  ContentOperatorType_WordSpacing,
81  ContentOperatorType_HorizontalScaling,
82  ContentOperatorType_Leading,
83 
89  ContentOperatorType_TextRenderingMode,
90  ContentOperatorType_TextRise,
91  ContentOperatorType_TextTranslate,
92  ContentOperatorType_TextTranslateLeading,
93  ContentOperatorType_TextMatrix,
94  ContentOperatorType_TextNextLine,
95 
101 
107  ContentOperatorType_TextNextLineShow,
108  ContentOperatorType_TextNextLineShowSpacing,
109  ContentOperatorType_SetCharWidth,
110  ContentOperatorType_SetCacheDevice,
111  ContentOperatorType_ColorSpaceStroke,
112  ContentOperatorType_ColorSpaceNonstroke,
113  ContentOperatorType_SetColorStroke,
114  ContentOperatorType_SetColorStrokeExtended,
115  ContentOperatorType_SetColorNonstroke,
116  ContentOperatorType_SetColorNonstrokeExtended,
117  ContentOperatorType_SetStrokingColorSpaceGray,
118  ContentOperatorType_SetNonstrokingColorSpaceGray,
119  ContentOperatorType_SetStrokingColorSpaceRGB,
120  ContentOperatorType_SetNonstrokingColorSpaceRGB,
121  ContentOperatorType_SetStrokingColorSpaceCMYK,
122  ContentOperatorType_SetNonstrokingColorSpaceCMYK,
123  ContentOperatorType_ShadingPaint,
124  ContentOperatorType_BeginInlineImageObject,
125  ContentOperatorType_BeginInlineImageData,
126  ContentOperatorType_EndInlineImageObject,
127  ContentOperatorType_InvokeXObject,
128  ContentOperatorType_DefineMarkedContentPoint,
129  ContentOperatorType_DefineMarkedContentPointWithPropertyList,
130  ContentOperatorType_BeginMarkedContentSequence,
131  ContentOperatorType_BeginMarkedContentSequenceWithPropertyList,
132  ContentOperatorType_EndMarkedContentSequence,
133  ContentOperatorType_BeginCompatibilitySection,
134  ContentOperatorType_EndCompatibilitySection
136 
145  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_GetType(ContentOperatorHandle* handle, ContentOperatorType* result);
146 
150  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_GetValue(ContentOperatorHandle* handle, BufferHandle** result);
151 
156  VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_Release(ContentOperatorHandle* handle);
157 
161 #ifdef __cplusplus
162 };
163 #endif
164 
165 #endif /* _C_CONTENT_OPERATOR_H */
error_type ContentOperator_Release(ContentOperatorHandle *handle)
Decrement the internal reference counter.
error_type ContentOperator_GetValue(ContentOperatorHandle *handle, BufferHandle **result)
Get byte representation of content operator.
An operator is a PDF keyword specifying some action that shall be performed, such as painting a graph...
ContentOperatorType
Available content operator types.
Definition: c_content_operator.h:32
This file contains all type forward declarations returned by the library API.
Unknown operator.
Definition: c_content_operator.h:36
Show a text string.
Definition: c_content_operator.h:100
Set the text font and the text font size.
Definition: c_content_operator.h:88
Show one or more text strings, allowing individual glyph positioning.
Definition: c_content_operator.h:106
Starts a new ContentObjectTextHandle section.
Definition: c_content_operator.h:72
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
error_type ContentOperator_GetType(ContentOperatorHandle *handle, ContentOperatorType *result)
Get derived type of current object.
This file contains macro declarations for importing and exporting symbols from library boundaries...
Terminates the ContentObjectTextHandle started with ContentOperationBeginTextHandle.
Definition: c_content_operator.h:78
This file contains types and constants used as parameters or return values.
Represents memory stored data.