Vanilla.PDF  1.6.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
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
32 typedef enum {
33 ContentOperatorType_Undefined = 0,
38 ContentOperatorType_LineWidth,
39 ContentOperatorType_LineCap,
40 ContentOperatorType_LineJoin,
41 ContentOperatorType_MiterLimit,
42 ContentOperatorType_DashPattern,
43 ContentOperatorType_ColorRenderingIntent,
44 ContentOperatorType_Flatness,
45 ContentOperatorType_GraphicsState,
46 ContentOperatorType_SaveGraphicsState,
47 ContentOperatorType_RestoreGraphicsState,
48 ContentOperatorType_TransformationMatrix,
49 ContentOperatorType_BeginSubpath,
50 ContentOperatorType_Line,
51 ContentOperatorType_FullCurve,
52 ContentOperatorType_FinalCurve,
53 ContentOperatorType_InitialCurve,
54 ContentOperatorType_CloseSubpath,
55 ContentOperatorType_Rectangle,
56 ContentOperatorType_Stroke,
57 ContentOperatorType_CloseAndStroke,
58 ContentOperatorType_FillPathNonzero,
59 ContentOperatorType_FillPathCompatibility,
60 ContentOperatorType_FillPathEvenOdd,
61 ContentOperatorType_FillStrokeNonzero,
62 ContentOperatorType_FillStrokeEvenOdd,
63 ContentOperatorType_CloseFillStrokeNonzero,
64 ContentOperatorType_CloseFillStrokeEvenOdd,
65 ContentOperatorType_EndPath,
66 ContentOperatorType_ClipPathNonzero,
67 ContentOperatorType_ClipPathEvenOdd,
68
74
80 ContentOperatorType_CharacterSpacing,
81 ContentOperatorType_WordSpacing,
82 ContentOperatorType_HorizontalScaling,
83 ContentOperatorType_Leading,
84
90 ContentOperatorType_TextRenderingMode,
91 ContentOperatorType_TextRise,
92 ContentOperatorType_TextTranslate,
93 ContentOperatorType_TextTranslateLeading,
94 ContentOperatorType_TextMatrix,
95 ContentOperatorType_TextNextLine,
96
102
108 ContentOperatorType_TextNextLineShow,
109 ContentOperatorType_TextNextLineShowSpacing,
110 ContentOperatorType_SetCharWidth,
111 ContentOperatorType_SetCacheDevice,
112 ContentOperatorType_ColorSpaceStroke,
113 ContentOperatorType_ColorSpaceNonstroke,
114 ContentOperatorType_SetColorStroke,
115 ContentOperatorType_SetColorStrokeExtended,
116 ContentOperatorType_SetColorNonstroke,
117 ContentOperatorType_SetColorNonstrokeExtended,
118 ContentOperatorType_SetStrokingColorSpaceGray,
119 ContentOperatorType_SetNonstrokingColorSpaceGray,
120 ContentOperatorType_SetStrokingColorSpaceRGB,
121 ContentOperatorType_SetNonstrokingColorSpaceRGB,
122 ContentOperatorType_SetStrokingColorSpaceCMYK,
123 ContentOperatorType_SetNonstrokingColorSpaceCMYK,
124 ContentOperatorType_ShadingPaint,
125 ContentOperatorType_BeginInlineImageObject,
126 ContentOperatorType_BeginInlineImageData,
127 ContentOperatorType_EndInlineImageObject,
128 ContentOperatorType_InvokeXObject,
129 ContentOperatorType_DefineMarkedContentPoint,
130 ContentOperatorType_DefineMarkedContentPointWithPropertyList,
131 ContentOperatorType_BeginMarkedContentSequence,
132 ContentOperatorType_BeginMarkedContentSequenceWithPropertyList,
133 ContentOperatorType_EndMarkedContentSequence,
134 ContentOperatorType_BeginCompatibilitySection,
135 ContentOperatorType_EndCompatibilitySection
137
146 VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_GetOperatorType(ContentOperatorHandle* handle, ContentOperatorType* result);
147
151 VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_GetValue(ContentOperatorHandle* handle, BufferHandle** result);
152
156 VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_ToUnknown(ContentOperatorHandle* handle, IUnknownHandle** result);
157
161 VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_FromUnknown(IUnknownHandle* handle, ContentOperatorHandle** result);
162
167 VANILLAPDF_API error_type CALLING_CONVENTION ContentOperator_Release(ContentOperatorHandle* handle);
168
172#ifdef __cplusplus
173};
174#endif
175
176#endif /* _C_CONTENT_OPERATOR_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.
Represents memory stored data.
An operator is a PDF keyword specifying some action that shall be performed, such as painting a graph...
error_type CALLING_CONVENTION ContentOperator_GetOperatorType(ContentOperatorHandle *handle, ContentOperatorType *result)
Get derived type of current object.
error_type CALLING_CONVENTION ContentOperator_ToUnknown(ContentOperatorHandle *handle, IUnknownHandle **result)
Reinterpret current object as IUnknownHandle.
error_type CALLING_CONVENTION ContentOperator_Release(ContentOperatorHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentOperator_GetValue(ContentOperatorHandle *handle, BufferHandle **result)
Get byte representation of content operator.
error_type CALLING_CONVENTION ContentOperator_FromUnknown(IUnknownHandle *handle, ContentOperatorHandle **result)
Convert IUnknownHandle to ContentOperatorHandle.
Base class for reference counting.
ContentOperatorType
Derived types of ContentOperatorHandle.
Definition: c_content_operator.h:32
@ ContentOperatorType_EndText
Terminates the ContentObjectTextHandle started with ContentOperationBeginTextHandle.
Definition: c_content_operator.h:79
@ ContentOperatorType_TextShowArray
Show one or more text strings, allowing individual glyph positioning.
Definition: c_content_operator.h:107
@ ContentOperatorType_TextFont
Set the text font and the text font size.
Definition: c_content_operator.h:89
@ ContentOperatorType_BeginText
Starts a new ContentObjectTextHandle section.
Definition: c_content_operator.h:73
@ ContentOperatorType_TextShow
Stream operation for showing a simple text string.
Definition: c_content_operator.h:101
@ ContentOperatorType_Unknown
Unknown operator.
Definition: c_content_operator.h:37
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25