Vanilla.PDF  1.6.0
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
7
8#ifdef __cplusplus
9extern "C"
10{
11#endif
12
72 typedef enum {
73 ContentOperationType_Undefined = 0,
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
179
184
189
194
199
204 VANILLAPDF_API error_type CALLING_CONVENTION ContentOperation_Release(ContentOperationHandle* handle);
205
217
222
227
232
237
243
255
260
265
270
276
289
300
305
310
316
331
339
346
353
358
363
369
382
385#ifdef __cplusplus
386};
387#endif
388
389#endif /* _C_CONTENT_OPERATION_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.
An array object is a one-dimensional collection of objects arranged sequentially.
Base class for all content objects and operations.
Starts a new ContentObjectTextHandle section.
Terminates the ContentObjectTextHandle started with ContentOperationBeginTextHandle.
error_type CALLING_CONVENTION ContentOperationEndText_Release(ContentOperationEndTextHandle *handle)
Decrement the internal reference counter.
Unresolved operation often containing unknown operator.
error_type CALLING_CONVENTION ContentOperationGeneric_GetOperator(ContentOperationGenericHandle *handle, ContentOperatorHandle **result)
Get operator from unknown operation.
error_type CALLING_CONVENTION ContentOperationGeneric_ToContentOperation(ContentOperationGenericHandle *handle, ContentOperationHandle **result)
Reinterpret current object as ContentOperationHandle.
error_type CALLING_CONVENTION ContentOperationGeneric_GetOperandAt(ContentOperationGenericHandle *handle, size_type at, ObjectHandle **result)
Get operand at location at.
error_type CALLING_CONVENTION ContentOperationGeneric_GetOperandsSize(ContentOperationGenericHandle *handle, size_type *result)
Get number of operands belonging to the operator.
error_type CALLING_CONVENTION ContentOperationGeneric_Release(ContentOperationGenericHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentOperationGeneric_FromContentOperation(ContentOperationHandle *handle, ContentOperationGenericHandle **result)
Convert ContentOperationHandle to ContentOperationGenericHandle.
Atomic operation modifying graphics state parameters.
error_type CALLING_CONVENTION ContentOperation_ToEndText(ContentOperationHandle *handle, ContentOperationEndTextHandle **result)
Reinterpret current object as ContentOperationEndTextHandle.
error_type CALLING_CONVENTION ContentOperation_FromInstruction(ContentInstructionHandle *handle, ContentOperationHandle **result)
Convert ContentInstructionHandle to ContentOperationHandle.
error_type CALLING_CONVENTION ContentOperation_GetOperationType(ContentOperationHandle *handle, ContentOperationType *result)
Get derived type of current object.
error_type CALLING_CONVENTION ContentOperation_ToBeginText(ContentOperationHandle *handle, ContentOperationBeginTextHandle **result)
Reinterpret current object as ContentOperationBeginTextHandle.
error_type CALLING_CONVENTION ContentOperation_Release(ContentOperationHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentOperation_ToInstruction(ContentOperationHandle *handle, ContentInstructionHandle **result)
Reinterpret current object as ContentInstructionHandle.
Set the text font and the text font size.
error_type CALLING_CONVENTION ContentOperationTextFont_SetName(ContentOperationTextFontHandle *handle, NameObjectHandle *data)
Set new font name.
error_type CALLING_CONVENTION ContentOperationTextFont_Release(ContentOperationTextFontHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentOperationTextFont_SetScale(ContentOperationTextFontHandle *handle, IntegerObjectHandle *data)
Set new font scaling.
error_type CALLING_CONVENTION ContentOperationTextFont_GetScale(ContentOperationTextFontHandle *handle, IntegerObjectHandle **result)
Get current font scaling.
error_type CALLING_CONVENTION ContentOperationTextFont_FromContentOperation(ContentOperationHandle *handle, ContentOperationTextFontHandle **result)
Convert ContentOperationHandle to ContentOperationTextFontHandle.
error_type CALLING_CONVENTION ContentOperationTextFont_GetName(ContentOperationTextFontHandle *handle, NameObjectHandle **result)
Get name of the font to be set.
error_type CALLING_CONVENTION ContentOperationTextFont_ToContentOperation(ContentOperationTextFontHandle *handle, ContentOperationHandle **result)
Reinterpret current object as ContentOperationHandle.
Show one or more text strings, allowing individual glyph positioning.
error_type CALLING_CONVENTION ContentOperationTextShowArray_SetValue(ContentOperationTextShowArrayHandle *handle, ArrayObjectHandle *data)
Set new text strings to be shown.
error_type CALLING_CONVENTION ContentOperationTextShowArray_GetValue(ContentOperationTextShowArrayHandle *handle, ArrayObjectHandle **result)
One or more text strings to be shown.
error_type CALLING_CONVENTION ContentOperationTextShowArray_ToContentOperation(ContentOperationTextShowArrayHandle *handle, ContentOperationHandle **result)
Reinterpret current object as ContentOperationHandle.
error_type CALLING_CONVENTION ContentOperationTextShowArray_Release(ContentOperationTextShowArrayHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentOperationTextShowArray_FromContentOperation(ContentOperationHandle *handle, ContentOperationTextShowArrayHandle **result)
Convert ContentOperationHandle to ContentOperationTextShowArrayHandle.
Stream operation for showing a simple text string.
error_type CALLING_CONVENTION ContentOperationTextShow_FromContentOperation(ContentOperationHandle *handle, ContentOperationTextShowHandle **result)
Convert ContentOperationHandle to ContentOperationTextShowHandle.
error_type CALLING_CONVENTION ContentOperationTextShow_SetValue(ContentOperationTextShowHandle *handle, StringObjectHandle *data)
Set a new text string to be shown.
error_type CALLING_CONVENTION ContentOperationTextShow_ToContentOperation(ContentOperationTextShowHandle *handle, ContentOperationHandle **result)
Reinterpret current object as ContentOperationHandle.
error_type CALLING_CONVENTION ContentOperationTextShow_Release(ContentOperationTextShowHandle *handle)
Decrement the internal reference counter.
error_type CALLING_CONVENTION ContentOperationTextShow_GetValue(ContentOperationTextShowHandle *handle, StringObjectHandle **result)
A text string to be shown.
An operator is a PDF keyword specifying some action that shall be performed, such as painting a graph...
Integer objects represent mathematical integers.
A name object is an atomic symbol uniquely defined by a sequence of characters.
Base class for syntactic tokens.
Reprsents human readable text.
ContentOperationType
Derived types of ContentOperationHandle.
Definition: c_content_operation.h:72
@ ContentOperationType_TextFont
Set the text font and the text font size.
Definition: c_content_operation.h:120
@ ContentOperationType_TextShow
Stream operation for showing a simple text string.
Definition: c_content_operation.h:132
@ ContentOperationType_TextShowArray
Show one or more text strings, allowing individual glyph positioning.
Definition: c_content_operation.h:138
@ ContentOperationType_Generic
Unresolved operation often containing unknown operator.
Definition: c_content_operation.h:78
uint32_t error_type
This is return value type of all API functions.
Definition: c_types.h:25
uint32_t size_type
Size type defined in standard library.
Definition: c_types.h:62