Pdftools SDK
Loading...
Searching...
No Matches
PdfTools_PdfToolsPdfAValidation.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * File: PdfTools_PdfToolsPdfAValidation.h
4 *
5 * Description: Sub Header file for Pdftools SDK
6 *
7 * Author: PDF Tools AG
8 *
9 * Copyright: Copyright (C) 2023 - 2024 PDF Tools AG, Switzerland
10 * All rights reserved.
11 *
12 *****************************************************************************/
13
14#ifndef PDFTOOLS_PDFTOOLSPDFAVALIDATION_H__
15#define PDFTOOLS_PDFTOOLSPDFAVALIDATION_H__
16
17#ifndef PDFTOOLS_CALL
18#if defined(WIN32)
19#define PDFTOOLS_CALL __stdcall
20#else
21#define PDFTOOLS_CALL
22#endif
23#endif
24
25#include "PdfTools_Types.h"
27
28#ifdef __cplusplus
29extern "C"
30{
31#endif
32
33#ifdef _UNICODE
34#define TPdfToolsPdfAValidation_Validator_Error TPdfToolsPdfAValidation_Validator_ErrorW
35#define PdfToolsPdfAValidation_Validator_AddErrorHandler PdfToolsPdfAValidation_Validator_AddErrorHandlerW
36#define PdfToolsPdfAValidation_Validator_RemoveErrorHandler PdfToolsPdfAValidation_Validator_RemoveErrorHandlerW
37
38#else
39#define TPdfToolsPdfAValidation_Validator_Error TPdfToolsPdfAValidation_Validator_ErrorA
40#define PdfToolsPdfAValidation_Validator_AddErrorHandler PdfToolsPdfAValidation_Validator_AddErrorHandlerA
41#define PdfToolsPdfAValidation_Validator_RemoveErrorHandler PdfToolsPdfAValidation_Validator_RemoveErrorHandlerA
42
43#endif
44
69typedef void(PDFTOOLS_CALL* TPdfToolsPdfAValidation_Validator_ErrorA)(void* pContext, const char* szDataPart,
70 const char* szMessage,
72 const char* szContext, int iPageNo,
73 int iObjectNo);
98typedef void(PDFTOOLS_CALL* TPdfToolsPdfAValidation_Validator_ErrorW)(void* pContext, const WCHAR* szDataPart,
99 const WCHAR* szMessage,
101 const WCHAR* szContext, int iPageNo,
102 int iObjectNo);
103
104/******************************************************************************
105 * Validator
106 *****************************************************************************/
163
174
230
231/******************************************************************************
232 * ValidationOptions
233 *****************************************************************************/
245
298 TPdfToolsPdfAValidation_ValidationOptions* pValidationOptions, const TPdfToolsPdf_Conformance* pConformance);
299
300/******************************************************************************
301 * ValidationResult
302 *****************************************************************************/
339
340/******************************************************************************
341 * AnalysisOptions
342 *****************************************************************************/
353
451 TPdfToolsPdfAValidation_AnalysisOptions* pAnalysisOptions, BOOL bStrictMode);
452
453/******************************************************************************
454 * AnalysisResult
455 *****************************************************************************/
597
598#ifdef __cplusplus
599}
600#endif
601
602#endif /* PDFTOOLS_PDFTOOLSPDFAVALIDATION_H__ */
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisResult_GetHasEmbeddedFiles(TPdfToolsPdfAValidation_AnalysisResult *pAnalysisResult)
Whether the document contains embedded files.
PDFTOOLS_EXPORT TPdfToolsPdf_Conformance PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisResult_GetRecommendedConformance(TPdfToolsPdfAValidation_AnalysisResult *pAnalysisResult)
The recommended conversion conformance The optimal PDF/A conformance for the conversion (i....
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisOptions_SetConformance(TPdfToolsPdfAValidation_AnalysisOptions *pAnalysisOptions, TPdfToolsPdf_Conformance iConformance)
The PDF/A conformance to validate.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_ValidationOptions_SetConformance(TPdfToolsPdfAValidation_ValidationOptions *pValidationOptions, const TPdfToolsPdf_Conformance *pConformance)
The conformance to be validated.
PDFTOOLS_EXPORT TPdfToolsPdf_Conformance PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisResult_GetConformance(TPdfToolsPdfAValidation_AnalysisResult *pAnalysisResult)
The conformance used for analysis.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisOptions_GetStrictMode(TPdfToolsPdfAValidation_AnalysisOptions *pAnalysisOptions)
Whether to enable additional, strict validation checks.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_Validator_AddErrorHandlerA(TPdfToolsPdfAValidation_Validator *pValidator, void *pContext, TPdfToolsPdfAValidation_Validator_ErrorA pFunction)
Adds event handler.
void(PDFTOOLS_CALL * TPdfToolsPdfAValidation_Validator_ErrorW)(void *pContext, const WCHAR *szDataPart, const WCHAR *szMessage, TPdfToolsPdfAValidation_ErrorCategory iCategory, const WCHAR *szContext, int iPageNo, int iObjectNo)
Definition PdfTools_PdfToolsPdfAValidation.h:98
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisResult_IsSigned(TPdfToolsPdfAValidation_AnalysisResult *pAnalysisResult)
Whether the document is digitally signed.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_Validator_AddErrorHandlerW(TPdfToolsPdfAValidation_Validator *pValidator, void *pContext, TPdfToolsPdfAValidation_Validator_ErrorW pFunction)
Adds event handler.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisOptions_SetStrictMode(TPdfToolsPdfAValidation_AnalysisOptions *pAnalysisOptions, BOOL bStrictMode)
Whether to enable additional, strict validation checks.
PDFTOOLS_EXPORT TPdfToolsPdfAValidation_AnalysisResult *PDFTOOLS_CALL PdfToolsPdfAValidation_Validator_Analyze(TPdfToolsPdfAValidation_Validator *pValidator, TPdfToolsPdf_Document *pDocument, TPdfToolsPdfAValidation_AnalysisOptions *pOptions)
Analyze a PDF document in preparation for its conversion to PDF/A. This method validates the document...
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_Validator_RemoveErrorHandlerA(TPdfToolsPdfAValidation_Validator *pValidator, void *pContext, TPdfToolsPdfAValidation_Validator_ErrorA pFunction)
Removes event handler.
PDFTOOLS_EXPORT TPdfToolsPdf_Conformance PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisOptions_GetConformance(TPdfToolsPdfAValidation_AnalysisOptions *pAnalysisOptions)
The PDF/A conformance to validate.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_Validator_RemoveErrorHandlerW(TPdfToolsPdfAValidation_Validator *pValidator, void *pContext, TPdfToolsPdfAValidation_Validator_ErrorW pFunction)
Removes event handler.
PDFTOOLS_EXPORT int PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisResult_GetFontCount(TPdfToolsPdfAValidation_AnalysisResult *pAnalysisResult)
The number of fonts used in the document.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisResult_IsConversionRecommended(TPdfToolsPdfAValidation_AnalysisResult *pAnalysisResult)
Whether the document should be converted to PDF/A.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_ValidationResult_IsConforming(TPdfToolsPdfAValidation_ValidationResult *pValidationResult)
Whether the document is conforming Whether the document conforms to all standards referenced to the P...
PDFTOOLS_EXPORT TPdfToolsPdfAValidation_ValidationResult *PDFTOOLS_CALL PdfToolsPdfAValidation_Validator_Validate(TPdfToolsPdfAValidation_Validator *pValidator, TPdfToolsPdf_Document *pDocument, TPdfToolsPdfAValidation_ValidationOptions *pOptions)
Validate the standards conformance of a PDF document.
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_ValidationOptions_GetConformance(TPdfToolsPdfAValidation_ValidationOptions *pValidationOptions, TPdfToolsPdf_Conformance *pConformance)
The conformance to be validated.
PDFTOOLS_EXPORT TPdfToolsPdfAValidation_ValidationOptions *PDFTOOLS_CALL PdfToolsPdfAValidation_ValidationOptions_New(void)
#define PDFTOOLS_CALL
Definition PdfTools_PdfToolsPdfAValidation.h:21
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisResult_IsConforming(TPdfToolsPdfAValidation_AnalysisResult *pAnalysisResult)
Whether the document is conforming Whether the document conforms to the PdfToolsPdfAValidation_Analys...
PDFTOOLS_EXPORT TPdfToolsPdfAValidation_Validator *PDFTOOLS_CALL PdfToolsPdfAValidation_Validator_New(void)
void(PDFTOOLS_CALL * TPdfToolsPdfAValidation_Validator_ErrorA)(void *pContext, const char *szDataPart, const char *szMessage, TPdfToolsPdfAValidation_ErrorCategory iCategory, const char *szContext, int iPageNo, int iObjectNo)
Definition PdfTools_PdfToolsPdfAValidation.h:69
PDFTOOLS_EXPORT TPdfToolsPdfAValidation_AnalysisOptions *PDFTOOLS_CALL PdfToolsPdfAValidation_AnalysisOptions_New(void)
PDFTOOLS_EXPORT TPdfToolsPdf_Conformance PDFTOOLS_CALL PdfToolsPdfAValidation_ValidationResult_GetConformance(TPdfToolsPdfAValidation_ValidationResult *pValidationResult)
The validated conformance.
#define PDFTOOLS_EXPORT
Definition PdfTools_Platform.h:138
unsigned short WCHAR
Definition PdfTools_Platform.h:90
TPdfToolsPdf_Conformance
Definition PdfTools_Types.h:193
struct TPdfToolsPdfAValidation_AnalysisOptions TPdfToolsPdfAValidation_AnalysisOptions
The PDF/A analysis options Options for the analysis of documents using the validator's method PdfTool...
Definition PdfTools_Types.h:2731
struct TPdfToolsPdfAValidation_Validator TPdfToolsPdfAValidation_Validator
The class to validate the standard conformance of documents.
Definition PdfTools_Types.h:2711
struct TPdfToolsPdfAValidation_ValidationOptions TPdfToolsPdfAValidation_ValidationOptions
The PDF validation options Options to check the quality and standard conformance of documents using t...
Definition PdfTools_Types.h:2718
TPdfToolsPdfAValidation_ErrorCategory
The validation error category.
Definition PdfTools_Types.h:527
struct TPdfToolsPdfAValidation_AnalysisResult TPdfToolsPdfAValidation_AnalysisResult
The PDF/A analysis result.
Definition PdfTools_Types.h:2743
#define BOOL
Definition PdfTools_Types.h:18
struct TPdfToolsPdf_Document TPdfToolsPdf_Document
The PDF document PDF documents are either opened using PdfToolsPdf_Document_Open or the result of an ...
Definition PdfTools_Types.h:2224
struct TPdfToolsPdfAValidation_ValidationResult TPdfToolsPdfAValidation_ValidationResult
The PDF validation result Result of the validator's method PdfToolsPdfAValidation_Validator_Validate.
Definition PdfTools_Types.h:2724