iDRS™ SDK 16
Loading...
Searching...
No Matches
CDocumentWriter_interface.h
Go to the documentation of this file.
1
7#ifndef CDOCUMENTWRITER_INTERFACE_H
8
9#define CDOCUMENTWRITER_INTERFACE_H
10
11#include "CIDRS_interface.h"
12#include "CPage_interface.h"
16
17#include "idrs_common.h"
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
30CDocumentWriter CDocumentWriter_Create(const CIDRS argIDRS, idrs_exception *pargException);
31
42CDocumentWriter CDocumentWriter_Create2(const CIDRS argIDRS, IBaseImagePlugin argImagePlugin, idrs_exception *pargException);
43
57IDRS_ERROR CDocumentWriter_Save(const CDocumentWriter argCDocumentWriter, const idrs_string strOutputFilePath, const CDocument argDocument, idrs_exception *pargException);
58
72IDRS_ERROR CDocumentWriter_Save2(const CDocumentWriter argCDocumentWriter, IByteStream argOutputStream, const CDocument argDocument, idrs_exception *pargException);
73
91IDRS_ERROR CDocumentWriter_Save3(const CDocumentWriter argCDocumentWriter, const idrs_string strOutputFilePath, const CPageArray argPageArray, idrs_exception *pargException);
92
110IDRS_ERROR CDocumentWriter_Save4(const CDocumentWriter argCDocumentWriter, IByteStream argOutputStream, const CPageArray argPageArray, idrs_exception *pargException);
111
130IDRS_ERROR CDocumentWriter_Save5(const CDocumentWriter argCDocumentWriter, const idrs_string strOutputFilePath, const CPage xargPageBuffer[], IDRS_UINT const uiPageCount, idrs_exception *pargException);
131
150IDRS_ERROR CDocumentWriter_Save6(const CDocumentWriter argCDocumentWriter, IByteStream argOutputStream, const CPage xargPageBuffer[], IDRS_UINT const uiPageCount, idrs_exception *pargException);
151
177IDRS_ERROR CDocumentWriter_Save7(const CDocumentWriter argCDocumentWriter, IStreamFactory argStreamFactory, const CDocument argDocument, idrs_exception *pargException);
178
205IDRS_ERROR CDocumentWriter_Save8(const CDocumentWriter argCDocumentWriter, IStreamFactory argStreamFactory, const CPageArray argPageArray, idrs_exception *pargException);
206
235IDRS_ERROR CDocumentWriter_Save9(const CDocumentWriter argCDocumentWriter, IStreamFactory argStreamFactory, const CPage xargPageBuffer[], IDRS_UINT const uiPageCount, idrs_exception *pargException);
236
247void CDocumentWriter_SetOutputParams(CDocumentWriter argCDocumentWriter, const COutputParams argOutputParams, idrs_exception *pargException);
248
256COutputParams CDocumentWriter_GetOutputParams(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException);
257
265IFontDataProviderCallback CDocumentWriter_GetFontDataProvider(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException);
266
274void CDocumentWriter_SetFontDataProvider(CDocumentWriter argCDocumentWriter, IFontDataProviderCallback argpFontProviderCallback, idrs_exception *pargException);
275
289void CDocumentWriter_SetDocumentMaxMemoryConsumption(CDocumentWriter argCDocumentWriter, IDRS_UINT64 const uiMaxMemoryConsumption, idrs_exception *pargException);
290
298IDRS_UINT64 CDocumentWriter_GetDocumentMaxMemoryConsumption(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException);
299
310void CDocumentWriter_SetOutputProgressCallback(CDocumentWriter argCDocumentWriter, IProgressDocumentWriting argpProgress, idrs_exception *pargException);
311
319IProgressDocumentWriting CDocumentWriter_GetOutputProgressCallback(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException);
320
331enum ThreadingMode CDocumentWriter_GetThreadingMode(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException);
332
343void CDocumentWriter_SetThreadingMode(CDocumentWriter argCDocumentWriter, const enum ThreadingMode* const evThreadingMode, idrs_exception *pargException);
344
354OutputThreadingConfig CDocumentWriter_GetAdvancedThreadingConfig(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException);
355
365void CDocumentWriter_SetAdvancedThreadingConfig(CDocumentWriter argCDocumentWriter, const OutputThreadingConfig* stThreadingConfig, idrs_exception *pargException);
366
374void CDocumentWriter_Destroy(CDocumentWriter argCDocumentWriter, idrs_exception *pargException);
375
376#ifdef __cplusplus
377}
378#endif /* __cplusplus */
379
380#endif /* CDOCUMENTWRITER_INTERFACE_H */
void CDocumentWriter_SetOutputProgressCallback(CDocumentWriter argCDocumentWriter, IProgressDocumentWriting argpProgress, idrs_exception *pargException)
Sets the object for monitoring progress.
IDRS_UINT64 CDocumentWriter_GetDocumentMaxMemoryConsumption(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException)
Gets the value for the max memory consumption threshold.
IDRS_ERROR CDocumentWriter_Save8(const CDocumentWriter argCDocumentWriter, IStreamFactory argStreamFactory, const CPageArray argPageArray, idrs_exception *pargException)
Creates one or more output documents using the supplied pages array. The method is using argStreamFac...
IFontDataProviderCallback CDocumentWriter_GetFontDataProvider(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException)
Gets the callback object used for formatting.
IDRS_ERROR CDocumentWriter_Save3(const CDocumentWriter argCDocumentWriter, const idrs_string strOutputFilePath, const CPageArray argPageArray, idrs_exception *pargException)
Creates the output file using the supplied pages array and writes it to the given file path.
IDRS_ERROR CDocumentWriter_Save6(const CDocumentWriter argCDocumentWriter, IByteStream argOutputStream, const CPage xargPageBuffer[], IDRS_UINT const uiPageCount, idrs_exception *pargException)
Creates the output file using the supplied pages and writes it to the given stream.
IDRS_ERROR CDocumentWriter_Save5(const CDocumentWriter argCDocumentWriter, const idrs_string strOutputFilePath, const CPage xargPageBuffer[], IDRS_UINT const uiPageCount, idrs_exception *pargException)
Creates the output file using the supplied pages and writes it to the given file path.
IDRS_ERROR CDocumentWriter_Save2(const CDocumentWriter argCDocumentWriter, IByteStream argOutputStream, const CDocument argDocument, idrs_exception *pargException)
Creates the output file using the supplied document and writes it to the given stream.
void CDocumentWriter_SetOutputParams(CDocumentWriter argCDocumentWriter, const COutputParams argOutputParams, idrs_exception *pargException)
Sets the parameters used to generate the output document.
void CDocumentWriter_SetAdvancedThreadingConfig(CDocumentWriter argCDocumentWriter, const OutputThreadingConfig *stThreadingConfig, idrs_exception *pargException)
Sets the threading config used for the document output process.
IDRS_ERROR CDocumentWriter_Save4(const CDocumentWriter argCDocumentWriter, IByteStream argOutputStream, const CPageArray argPageArray, idrs_exception *pargException)
Creates the output file using the supplied pages array and writes it to the given stream.
void CDocumentWriter_SetDocumentMaxMemoryConsumption(CDocumentWriter argCDocumentWriter, IDRS_UINT64 const uiMaxMemoryConsumption, idrs_exception *pargException)
Sets the threshold for the maximum amount of memory that will be allocated to store the output docume...
IDRS_ERROR CDocumentWriter_Save9(const CDocumentWriter argCDocumentWriter, IStreamFactory argStreamFactory, const CPage xargPageBuffer[], IDRS_UINT const uiPageCount, idrs_exception *pargException)
Creates one or more output documents using the supplied pages. The method is using argStreamFactory t...
void CDocumentWriter_Destroy(CDocumentWriter argCDocumentWriter, idrs_exception *pargException)
Destroys a CDocumentWriter handle.
CDocumentWriter CDocumentWriter_Create(const CIDRS argIDRS, idrs_exception *pargException)
Create creates a CDocumentWriter object.
IProgressDocumentWriting CDocumentWriter_GetOutputProgressCallback(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException)
GetOutputProgressCallback gets the object used for monitoring progress.
CDocumentWriter CDocumentWriter_Create2(const CIDRS argIDRS, IBaseImagePlugin argImagePlugin, idrs_exception *pargException)
Create creates a CDocumentWriter object.
OutputThreadingConfig CDocumentWriter_GetAdvancedThreadingConfig(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException)
Gets the threading config used for the document output process.
void CDocumentWriter_SetThreadingMode(CDocumentWriter argCDocumentWriter, const enum ThreadingMode *const evThreadingMode, idrs_exception *pargException)
Sets the threading mode used for the document output process.
void CDocumentWriter_SetFontDataProvider(CDocumentWriter argCDocumentWriter, IFontDataProviderCallback argpFontProviderCallback, idrs_exception *pargException)
Sets the callback class used by integrators to retrieve font data when creating documents.
IDRS_ERROR CDocumentWriter_Save7(const CDocumentWriter argCDocumentWriter, IStreamFactory argStreamFactory, const CDocument argDocument, idrs_exception *pargException)
Creates one or more output documents using the supplied document object. The method is using argStrea...
COutputParams CDocumentWriter_GetOutputParams(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException)
Gets the output parameters property value.
enum ThreadingMode CDocumentWriter_GetThreadingMode(const CDocumentWriter argCDocumentWriter, idrs_exception *pargException)
Returns the threading mode that should be used for the document output process.
IDRS_ERROR CDocumentWriter_Save(const CDocumentWriter argCDocumentWriter, const idrs_string strOutputFilePath, const CDocument argDocument, idrs_exception *pargException)
Creates the output file using the supplied document and writes it to the given file path.
Interface for CIDRS wrapper.
Interface for COutputParams wrapper.
Interface for CPage wrapper.
ThreadingMode
Multi-threading usage modes.
Definition EnumDefinitions_interface.h:3111
Interface for IProgressDocumentWriting wrapper.
Interface for IStreamFactory wrapper.
CDocument class represents a document composed of a set of CPage elements.
The CDocumentWriter class exports iDRS structures to external file formats.
COutputParams class is the base class for different output classes.
The CPage class manages a page in the IDRS.
IBaseImagePlugin defines the interface required to provide custom image loading/saving capabilities.
IByteStream defines the interface required to provide read, write and seek functionalities for a sequ...
IFontDataProviderCallback defines the interface required to supply the fonts to be used by the docume...
IProgressDocumentWriting defines the interface required to monitor document writing progress.
IStreamFactory represents an interface used for output stream creation.
Class that handles a string of characters.
unsigned long IDRS_ERROR
The IDRS_ERROR data type defines an error code.
Definition idrserr_interface.h:16
unsigned long long IDRS_UINT64
An unsigned 64 bit value.
Definition idrsstd_interface.h:33
unsigned int IDRS_UINT
An unsigned integer.
Definition idrsstd_interface.h:27
Defines how many threads output operations should use for processing.
Definition StructDefinitions_interface.h:172