Package com.itextpdf.kernel.utils
Class ValidationContext
java.lang.Object
com.itextpdf.kernel.utils.ValidationContext
This class is used to pass additional information to the
IValidationChecker
implementations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetFonts()
Gets fonts related to thisValidationContext
.GetsPdfDocument
related to thisValidationContext
.withFonts
(Collection<PdfFont> fonts) Sets fonts for thisValidationContext
instance.withPdfDocument
(PdfDocument pdfDocument) SetsPdfDocument
for thisValidationContext
instance.
-
Constructor Details
-
ValidationContext
public ValidationContext()Creates newValidationContext
instance.
-
-
Method Details
-
withPdfDocument
SetsPdfDocument
for thisValidationContext
instance.- Parameters:
-
pdfDocument
- document to validate. - Returns:
-
this
ValidationContext
instance.
-
withFonts
Sets fonts for thisValidationContext
instance.- Parameters:
-
fonts
- collection of thePdfFont
fonts to validate. - Returns:
-
this
ValidationContext
instance.
-
getPdfDocument
GetsPdfDocument
related to thisValidationContext
.- Returns:
-
PdfDocument
document to validate.
-
getFonts
Gets fonts related to thisValidationContext
.- Returns:
- fonts to validate.
-