Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
validate.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2024-2025 Global Graphics Software Ltd. All rights reserved.
3 */
4
5#ifndef JAWSMAKO_VALIDATE_H
6#define JAWSMAKO_VALIDATE_H
7
8#include <jawsmako/types.h>
9
10namespace JawsMako
11{
12 using namespace EDL;
13
20 class IPDFValidator : public IRCObject
21 {
22 public:
23 virtual ~IPDFValidator() {}
24
28 typedef enum
29 {
33 }
35
41 {
42 public:
44 {
46 }
47 CGeneralError(const U8String &_description, uint32 _numOccurrences)
48 {
49 description = _description;
50 numOccurrences = _numOccurrences;
51 }
54 };
56
67 {
68 public:
70 {
71 }
72 CContentError(const U8String &_description, const FRect &_location)
73 {
74 description = _description;
75 location = _location;
76 }
79 };
81
86 {
87 public:
89 {
90 }
91 CPageErrors(const CGeneralErrorVect &_generalErrors, const CContentErrorVect &_contentErrors)
92 {
93 generalErrors = _generalErrors;
94 contentErrors = _contentErrors;
95 }
98 };
100
109 static JAWSMAKO_API IPDFValidatorPtr create(const IJawsMakoPtr &jawsMako,
110 ePDFValidateVersion version,
111 const IProgressMonitorPtr &progressMonitor = IProgressMonitorPtr ());
112
142 virtual bool validate(const IInputStreamPtr &pdfStream,
143 CGeneralErrorVect &globalErrors,
144 CPageErrorsVect &pageErrors) = 0;
145 };
146
147}
148#endif /* JAWSMAKO_VALIDATE_H */
149
Definition edlvector.h:30
Base class Interface for all Reference Counted objects.
Definition ircobject.h:35
CContentError()
Definition validate.h:69
U8String description
Definition validate.h:77
CContentError(const U8String &_description, const FRect &_location)
Definition validate.h:72
FRect location
Definition validate.h:78
CGeneralError()
Definition validate.h:43
CGeneralError(const U8String &_description, uint32 _numOccurrences)
Definition validate.h:47
U8String description
Definition validate.h:52
uint32 numOccurrences
Definition validate.h:53
CGeneralErrorVect generalErrors
Definition validate.h:96
CContentErrorVect contentErrors
Definition validate.h:97
CPageErrors(const CGeneralErrorVect &_generalErrors, const CContentErrorVect &_contentErrors)
Definition validate.h:91
CPageErrors()
Definition validate.h:88
A class for validating PDF documents against published PDF standards such as PDF/X.
Definition validate.h:21
CEDLVector< CContentError > CContentErrorVect
Definition validate.h:80
virtual ~IPDFValidator()
Definition validate.h:23
CEDLVector< CPageErrors > CPageErrorsVect
Definition validate.h:99
static JAWSMAKO_API IPDFValidatorPtr create(const IJawsMakoPtr &jawsMako, ePDFValidateVersion version, const IProgressMonitorPtr &progressMonitor=IProgressMonitorPtr())
Create an IPDFValidator instance that validates against the given version.
CEDLVector< CGeneralError > CGeneralErrorVect
Definition validate.h:55
virtual bool validate(const IInputStreamPtr &pdfStream, CGeneralErrorVect &globalErrors, CPageErrorsVect &pageErrors)=0
Perform validation on an entire PDF stream.
ePDFValidateVersion
Supported validation standards.
Definition validate.h:29
@ ePDFX1a2001
Definition validate.h:31
@ ePDFX12001
Definition validate.h:30
@ ePDFX1a2003
Definition validate.h:32
RectTmpl< double > FRect
Definition edlgeom.h:338
unsigned int uint32
Definition edltypes.h:34
EDLSysString U8String
A UTF-8 String.
Definition types.h:144
Definition apexcustompostprocess.h:17
EDL::IProgressMonitorPtr IProgressMonitorPtr
Definition types.h:85
#define JAWSMAKO_API
Definition types.h:29