public class Validator.Error
extends java.util.EventObject
Validator.analyze(com.pdftools.pdf.Document)
or Validator.validate(com.pdftools.pdf.Document)
.Modifier and Type | Method | Description |
---|---|---|
ErrorCategory |
getCategory() |
The category of the validation error
|
java.lang.String |
getContext() |
A description of the context where the error occurred
|
java.lang.String |
getDataPart() |
The data part is
null for the main file and a data part specification for embedded files. |
java.lang.String |
getMessage() |
The validation message
|
int |
getObjectNo() |
The number of the PDF object this error is associated to
|
int |
getPageNo() |
The page number this error is associated to or
0 |
public java.lang.String getDataPart()
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
.public java.lang.String getMessage()
public ErrorCategory getCategory()
public java.lang.String getContext()
public int getPageNo()
0
public int getObjectNo()