|
iDRS™ SDK 16
|
Interface for CDocumentWriter wrapper. More...
Go to the source code of this file.
Functions | |
| CDocumentWriter | CDocumentWriter_Create (const CIDRS argIDRS, idrs_exception *pargException) |
| Create creates a CDocumentWriter object. | |
| CDocumentWriter | CDocumentWriter_Create2 (const CIDRS argIDRS, IBaseImagePlugin argImagePlugin, idrs_exception *pargException) |
| Create creates a CDocumentWriter object. | |
| 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. | |
| 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. | |
| 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_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. | |
| 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_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_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 argStreamFactory to create one or more streams for the output document(s). | |
| 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 argStreamFactory to create one or more streams for the output document(s). | |
| 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 to create one or more streams for the output document(s). | |
| void | CDocumentWriter_SetOutputParams (CDocumentWriter argCDocumentWriter, const COutputParams argOutputParams, idrs_exception *pargException) |
| Sets the parameters used to generate the output document. | |
| COutputParams | CDocumentWriter_GetOutputParams (const CDocumentWriter argCDocumentWriter, idrs_exception *pargException) |
| Gets the output parameters property value. | |
| IFontDataProviderCallback | CDocumentWriter_GetFontDataProvider (const CDocumentWriter argCDocumentWriter, idrs_exception *pargException) |
| Gets the callback object used for formatting. | |
| void | CDocumentWriter_SetFontDataProvider (CDocumentWriter argCDocumentWriter, IFontDataProviderCallback argpFontProviderCallback, idrs_exception *pargException) |
| Sets the callback class used by integrators to retrieve font data when creating documents. | |
| 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 document in memory. When nearing this threshold, temporary files will be used to avoid crossing it. | |
| IDRS_UINT64 | CDocumentWriter_GetDocumentMaxMemoryConsumption (const CDocumentWriter argCDocumentWriter, idrs_exception *pargException) |
| Gets the value for the max memory consumption threshold. | |
| void | CDocumentWriter_SetOutputProgressCallback (CDocumentWriter argCDocumentWriter, IProgressDocumentWriting argpProgress, idrs_exception *pargException) |
| Sets the object for monitoring progress. | |
| IProgressDocumentWriting | CDocumentWriter_GetOutputProgressCallback (const CDocumentWriter argCDocumentWriter, idrs_exception *pargException) |
| GetOutputProgressCallback gets the object used for monitoring progress. | |
| enum ThreadingMode | CDocumentWriter_GetThreadingMode (const CDocumentWriter argCDocumentWriter, idrs_exception *pargException) |
| Returns the threading mode that should be 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. | |
| OutputThreadingConfig | CDocumentWriter_GetAdvancedThreadingConfig (const CDocumentWriter argCDocumentWriter, idrs_exception *pargException) |
| Gets the threading config used for the document output process. | |
| void | CDocumentWriter_SetAdvancedThreadingConfig (CDocumentWriter argCDocumentWriter, const OutputThreadingConfig *stThreadingConfig, idrs_exception *pargException) |
| Sets the threading config used for the document output process. | |
| void | CDocumentWriter_Destroy (CDocumentWriter argCDocumentWriter, idrs_exception *pargException) |
| Destroys a CDocumentWriter handle. | |
Interface for CDocumentWriter wrapper.
| CDocumentWriter CDocumentWriter_Create | ( | const CIDRS | argIDRS, |
| idrs_exception * | pargException | ||
| ) |
Create creates a CDocumentWriter object.
| argIDRS | The IDRS handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CDocumentWriter CDocumentWriter_Create2 | ( | const CIDRS | argIDRS, |
| IBaseImagePlugin | argImagePlugin, | ||
| idrs_exception * | pargException | ||
| ) |
Create creates a CDocumentWriter object.
This CDocumentWriter object will use the specified image compressor.
| argIDRS | The IDRS handle |
| argImagePlugin | The external image plugin to use. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CDocumentWriter_Destroy | ( | CDocumentWriter | argCDocumentWriter, |
| idrs_exception * | pargException | ||
| ) |
Destroys a CDocumentWriter handle.
| argCDocumentWriter | CDocumentWriter handle to destroy |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| OutputThreadingConfig CDocumentWriter_GetAdvancedThreadingConfig | ( | const CDocumentWriter | argCDocumentWriter, |
| idrs_exception * | pargException | ||
| ) |
Gets the threading config used for the document output process.
By default, the threading config is set to no multithreading
| argCDocumentWriter | CDocumentWriter handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IDRS_UINT64 CDocumentWriter_GetDocumentMaxMemoryConsumption | ( | const CDocumentWriter | argCDocumentWriter, |
| idrs_exception * | pargException | ||
| ) |
Gets the value for the max memory consumption threshold.
| argCDocumentWriter | CDocumentWriter handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IFontDataProviderCallback CDocumentWriter_GetFontDataProvider | ( | const CDocumentWriter | argCDocumentWriter, |
| idrs_exception * | pargException | ||
| ) |
Gets the callback object used for formatting.
| argCDocumentWriter | CDocumentWriter handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| COutputParams CDocumentWriter_GetOutputParams | ( | const CDocumentWriter | argCDocumentWriter, |
| idrs_exception * | pargException | ||
| ) |
Gets the output parameters property value.
| argCDocumentWriter | CDocumentWriter handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| IProgressDocumentWriting CDocumentWriter_GetOutputProgressCallback | ( | const CDocumentWriter | argCDocumentWriter, |
| idrs_exception * | pargException | ||
| ) |
GetOutputProgressCallback gets the object used for monitoring progress.
| argCDocumentWriter | CDocumentWriter handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| enum ThreadingMode CDocumentWriter_GetThreadingMode | ( | const CDocumentWriter | argCDocumentWriter, |
| idrs_exception * | pargException | ||
| ) |
Returns the threading mode that should be used for the document output process.
Please see
| argCDocumentWriter | CDocumentWriter handle |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| 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.
| argCDocumentWriter | CDocumentWriter handle |
| strOutputFilePath | The path to the output file. |
| argDocument | The document containing the pages to format. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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.
| argCDocumentWriter | CDocumentWriter handle |
| argOutputStream | The stream where the document content will be written. |
| argDocument | The document containing the pages to format. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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.
| argCDocumentWriter | CDocumentWriter handle |
| strOutputFilePath | The path to the output file. |
| argPageArray | The array containing the pages to format. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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.
| argCDocumentWriter | CDocumentWriter handle |
| argOutputStream | The stream where the document content will be written. |
| argPageArray | The array containing the pages to format. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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.
| argCDocumentWriter | CDocumentWriter handle |
| strOutputFilePath | The path to the output file. |
| xargPageBuffer | The buffer containing the pages to format. |
| uiPageCount | The number of pages in xPageBuffer. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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.
| argCDocumentWriter | CDocumentWriter handle |
| argOutputStream | The stream where the document content will be written. |
| xargPageBuffer | The buffer containing the pages to format. |
| uiPageCount | The number of pages in xPageBuffer. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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 argStreamFactory to create one or more streams for the output document(s).
The document will be split into one or more streams, according to the options set in argDocumentSplitParameters argument.
| argCDocumentWriter | CDocumentWriter handle |
| argStreamFactory | Output stream creator factory |
| argDocument | CDocument instance containing the information about the image and the recognition results |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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 argStreamFactory to create one or more streams for the output document(s).
The document will be split into one or more streams, according to the options set in argDocumentSplitParameters argument.
| argCDocumentWriter | CDocumentWriter handle |
| argStreamFactory | Output stream creator factory |
| argPageArray | The array containing the pages to format. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| 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 to create one or more streams for the output document(s).
The document will be split into one or more streams, according to the options set in argDocumentSplitParameters argument.
| argCDocumentWriter | CDocumentWriter handle |
| argStreamFactory | Output stream creator factory |
| xargPageBuffer | The buffer containing the pages to format. |
| uiPageCount | The number of pages in xPageBuffer. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| CIDRSException | in case of non-recoverable issue preventing document creation |
| void CDocumentWriter_SetAdvancedThreadingConfig | ( | CDocumentWriter | argCDocumentWriter, |
| const OutputThreadingConfig * | stThreadingConfig, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the threading config used for the document output process.
Threading config can be altered directly by integrators, or set to recommended values via property ThreadingMode.
| argCDocumentWriter | CDocumentWriter handle |
| stThreadingConfig | Threading config to set |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| 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 document in memory. When nearing this threshold, temporary files will be used to avoid crossing it.
| argCDocumentWriter | CDocumentWriter handle |
| uiMaxMemoryConsumption | The maximum memory consumption threshold (in bytes) |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CDocumentWriter_SetFontDataProvider | ( | CDocumentWriter | argCDocumentWriter, |
| IFontDataProviderCallback | argpFontProviderCallback, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the callback class used by integrators to retrieve font data when creating documents.
| argCDocumentWriter | CDocumentWriter handle |
| argpFontProviderCallback | Reference to a class containing an implementation for IFontDataProviderCallback |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CDocumentWriter_SetOutputParams | ( | CDocumentWriter | argCDocumentWriter, |
| const COutputParams | argOutputParams, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the parameters used to generate the output document.
The output parameters are used during the output document saving process, thus they must be set prior to invoking the Save() method.
| argCDocumentWriter | CDocumentWriter handle |
| argOutputParams | The output parameters. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CDocumentWriter_SetOutputProgressCallback | ( | CDocumentWriter | argCDocumentWriter, |
| IProgressDocumentWriting | argpProgress, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the object for monitoring progress.
The methods of the object overiding the methods of the IProgressDocumentWriting class will be called during the execution. This let the integrator implement a cancel button or a progress bar.
| argCDocumentWriter | CDocumentWriter handle |
| argpProgress | The object to use for monitoring the progress. |
| pargException | Pointer to exception structure that will be filled if an exception occurs |
| void CDocumentWriter_SetThreadingMode | ( | CDocumentWriter | argCDocumentWriter, |
| const enum ThreadingMode *const | evThreadingMode, | ||
| idrs_exception * | pargException | ||
| ) |
Sets the threading mode used for the document output process.
Please see
| argCDocumentWriter | CDocumentWriter handle |
| evThreadingMode | The threading mode to be used |
| pargException | Pointer to exception structure that will be filled if an exception occurs |