Go to the source code of this file.
|
typedef void(PDFTOOLS_CALL * | TPdfToolsPdfAConversion_Converter_ConversionEventA) (void *pContext, const char *szDataPart, const char *szMessage, TPdfToolsPdfAConversion_EventSeverity iSeverity, TPdfToolsPdfAConversion_EventCategory iCategory, TPdfToolsPdfAConversion_EventCode iCode, const char *szContext, int iPageNo) |
| The event for errors, warnings, and informational messages that occur during conversion.
|
|
typedef void(PDFTOOLS_CALL * | TPdfToolsPdfAConversion_Converter_ConversionEventW) (void *pContext, const WCHAR *szDataPart, const WCHAR *szMessage, TPdfToolsPdfAConversion_EventSeverity iSeverity, TPdfToolsPdfAConversion_EventCategory iCategory, TPdfToolsPdfAConversion_EventCode iCode, const WCHAR *szContext, int iPageNo) |
| The event for errors, warnings, and informational messages that occur during conversion.
|
|
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_Converter_AddConversionEventHandlerA (TPdfToolsPdfAConversion_Converter *pConverter, void *pContext, TPdfToolsPdfAConversion_Converter_ConversionEventA pFunction) |
| Adds event handler.
|
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_Converter_AddConversionEventHandlerW (TPdfToolsPdfAConversion_Converter *pConverter, void *pContext, TPdfToolsPdfAConversion_Converter_ConversionEventW pFunction) |
| Adds event handler.
|
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_Converter_RemoveConversionEventHandlerA (TPdfToolsPdfAConversion_Converter *pConverter, void *pContext, TPdfToolsPdfAConversion_Converter_ConversionEventA pFunction) |
| Removes event handler.
|
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_Converter_RemoveConversionEventHandlerW (TPdfToolsPdfAConversion_Converter *pConverter, void *pContext, TPdfToolsPdfAConversion_Converter_ConversionEventW pFunction) |
| Removes event handler.
|
|
PDFTOOLS_EXPORT TPdfToolsPdfAConversion_Converter *PDFTOOLS_CALL | PdfToolsPdfAConversion_Converter_New (void) |
|
PDFTOOLS_EXPORT TPdfToolsPdf_Document *PDFTOOLS_CALL | PdfToolsPdfAConversion_Converter_Convert (TPdfToolsPdfAConversion_Converter *pConverter, TPdfToolsPdfAValidation_AnalysisResult *pAnalysis, TPdfToolsPdf_Document *pDocument, const TPdfToolsSys_StreamDescriptor *pOutStreamDesc, TPdfToolsPdfAConversion_ConversionOptions *pOptions, TPdfToolsPdf_OutputOptions *pOutOptions) |
| Convert a document to PDF/A. Note that it is highly recommended to use TPdfToolsPdfAConversion_Converter_ConversionEvent to detect critical conversion events.
|
|
PDFTOOLS_EXPORT TPdfToolsPdfAConversion_ConversionOptions *PDFTOOLS_CALL | PdfToolsPdfAConversion_ConversionOptions_New (void) |
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_ConversionOptions_GetConformance (TPdfToolsPdfAConversion_ConversionOptions *pConversionOptions, TPdfToolsPdf_Conformance *pConformance) |
| The minimal target conformance.
|
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_ConversionOptions_SetConformance (TPdfToolsPdfAConversion_ConversionOptions *pConversionOptions, const TPdfToolsPdf_Conformance *pConformance) |
| The minimal target conformance.
|
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_ConversionOptions_GetCopyMetadata (TPdfToolsPdfAConversion_ConversionOptions *pConversionOptions) |
| Whether to copy metadata Copy document information dictionary and XMP metadata. Default: TRUE.
|
|
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL | PdfToolsPdfAConversion_ConversionOptions_SetCopyMetadata (TPdfToolsPdfAConversion_ConversionOptions *pConversionOptions, BOOL bCopyMetadata) |
| Whether to copy metadata Copy document information dictionary and XMP metadata. Default: TRUE.
|
|
◆ PDFTOOLS_CALL
◆ PdfToolsPdfAConversion_Converter_AddConversionEventHandler
◆ PdfToolsPdfAConversion_Converter_RemoveConversionEventHandler
◆ TPdfToolsPdfAConversion_Converter_ConversionEvent
◆ TPdfToolsPdfAConversion_Converter_ConversionEventA
The event for errors, warnings, and informational messages that occur during conversion.
Report a conversion event that occurred in PdfToolsPdfAConversion_Converter_Convert. These events can be used to:
- Generate a detailed conversion report.
- Detect and handle critical conversion events.
Note that if a document cannot be converted to the requested conformance, the PdfToolsPdfAConversion_Converter_Convert throws an exception. However, even if the output document meets all required standards, the conversion might have resulted in differences that might be acceptable in some processes but not in others. Such potentially critical conversion issues are reported as conversion events.
We suggest checking which conversion events can be tolerated in your conversion process and which must be considered critical:
- Parameters
-
[in,out] | pContext | Context of the event callback. |
[in] | szDataPart | The data part is NULL for the main file and a data part specification for embedded files. Examples:
embedded-file:file.pdf : For a file file.pdf that is embedded in the main file.
embedded-file:file1.pdf/embedded-file:file2.pdf : For a file file2.pdf that is embedded in an embedded file file1.pdf .
|
[in] | szMessage | The event message |
[in] | iSeverity | The suggested severity of the event. We suggest checking, which conversion events are tolerable in your conversion process and which must be considered critical. See the documentation of TPdfToolsPdfAConversion_Converter_ConversionEvent for a more detailed description. |
[in] | iCategory | The category of the event. This parameter can be used to:
|
[in] | iCode | The code identifying particular events which can be used for detection and specialized handling of specific events. For most applications, it suffices to handle events by category . |
[in] | szContext | A description of the context where the event occurred |
[in] | iPageNo | The page this event is associated to or 0 |
◆ TPdfToolsPdfAConversion_Converter_ConversionEventW
The event for errors, warnings, and informational messages that occur during conversion.
Report a conversion event that occurred in PdfToolsPdfAConversion_Converter_Convert. These events can be used to:
- Generate a detailed conversion report.
- Detect and handle critical conversion events.
Note that if a document cannot be converted to the requested conformance, the PdfToolsPdfAConversion_Converter_Convert throws an exception. However, even if the output document meets all required standards, the conversion might have resulted in differences that might be acceptable in some processes but not in others. Such potentially critical conversion issues are reported as conversion events.
We suggest checking which conversion events can be tolerated in your conversion process and which must be considered critical:
- Parameters
-
[in,out] | pContext | Context of the event callback. |
[in] | szDataPart | The data part is NULL for the main file and a data part specification for embedded files. Examples:
embedded-file:file.pdf : For a file file.pdf that is embedded in the main file.
embedded-file:file1.pdf/embedded-file:file2.pdf : For a file file2.pdf that is embedded in an embedded file file1.pdf .
|
[in] | szMessage | The event message |
[in] | iSeverity | The suggested severity of the event. We suggest checking, which conversion events are tolerable in your conversion process and which must be considered critical. See the documentation of TPdfToolsPdfAConversion_Converter_ConversionEvent for a more detailed description. |
[in] | iCategory | The category of the event. This parameter can be used to:
|
[in] | iCode | The code identifying particular events which can be used for detection and specialized handling of specific events. For most applications, it suffices to handle events by category . |
[in] | szContext | A description of the context where the event occurred |
[in] | iPageNo | The page this event is associated to or 0 |
◆ PdfToolsPdfAConversion_ConversionOptions_GetConformance()
◆ PdfToolsPdfAConversion_ConversionOptions_GetCopyMetadata()
Whether to copy metadata Copy document information dictionary and XMP metadata. Default: TRUE.
- Parameters
-
- Returns
- Retrieved value.
May indicate an error in certain scenarios. For further information see the note section below.
- Note
- An error occurred when FALSE is returned and the error code returned by PdfTools_GetLastError is different from ePdfTools_Error_Success. The error message can be obtained by calling PdfTools_GetLastErrorMessage.
◆ PdfToolsPdfAConversion_ConversionOptions_New()
- Returns
- Handle to the newly created native object.
NULL
if there is an error.
- Note
- An error occurred when
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage.
◆ PdfToolsPdfAConversion_ConversionOptions_SetConformance()
◆ PdfToolsPdfAConversion_ConversionOptions_SetCopyMetadata()
Whether to copy metadata Copy document information dictionary and XMP metadata. Default: TRUE.
- Parameters
-
- Returns
- TRUE if the operation is successful; FALSE if there is an error.
- Note
- An error occurred when FALSE is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage.
◆ PdfToolsPdfAConversion_Converter_AddConversionEventHandlerA()
Adds event handler.
- Parameters
-
[in,out] | pConverter | Pointer to the object to which the event handler is added. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is added. |
- Returns
- TRUE if adding event handler was successful; FALSE if error occured.
- Note
- In case of an error, the specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage.
◆ PdfToolsPdfAConversion_Converter_AddConversionEventHandlerW()
Adds event handler.
- Parameters
-
[in,out] | pConverter | Pointer to the object to which the event handler is added. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is added. |
- Returns
- TRUE if adding event handler was successful; FALSE if error occured.
- Note
- In case of an error, the specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage.
◆ PdfToolsPdfAConversion_Converter_Convert()
◆ PdfToolsPdfAConversion_Converter_New()
- Returns
- Handle to the newly created native object.
NULL
if there is an error.
- Note
- An error occurred when
NULL
is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage.
◆ PdfToolsPdfAConversion_Converter_RemoveConversionEventHandlerA()
Removes event handler.
- Parameters
-
[in,out] | pConverter | Pointer to the object from which the event handler is removed. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is removed. |
- Returns
- TRUE if removal was successful; FALSE if error occured.
- Note
- In case of an error, the specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage.
◆ PdfToolsPdfAConversion_Converter_RemoveConversionEventHandlerW()
Removes event handler.
- Parameters
-
[in,out] | pConverter | Pointer to the object from which the event handler is removed. |
[in,out] | pContext | The context of the event handler. |
[in] | pFunction | The event callback that is removed. |
- Returns
- TRUE if removal was successful; FALSE if error occured.
- Note
- In case of an error, the specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling PdfTools_GetLastErrorMessage.