Package com.itextpdf.kernel.pdf
Class VersionConforming
java.lang.Object
com.itextpdf.kernel.pdf.VersionConforming
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
validatePdfVersionForDeprecatedFeatureLogError
(PdfDocument document, PdfVersion expectedVersion, String deprecatedFeatureLogMessage) static boolean
validatePdfVersionForDeprecatedFeatureLogWarn
(PdfDocument document, PdfVersion expectedVersion, String deprecatedFeatureLogMessage) static boolean
validatePdfVersionForDictEntry
(PdfDocument document, PdfVersion expectedVersion, PdfName entryKey, PdfName dictType) static boolean
validatePdfVersionForNotSupportedFeatureLogError
(PdfDocument document, PdfVersion expectedStartVersion, String notSupportedFeatureLogMessage) Logs error message in case provided PDF document version is earlier than specified expected starting version.
-
Field Details
-
DEPRECATED_AES256_REVISION
- See Also:
-
DEPRECATED_ENCRYPTION_ALGORITHMS
- See Also:
-
DEPRECATED_NEED_APPEARANCES_IN_ACROFORM
- See Also:
-
DEPRECATED_XFA_FORMS
- See Also:
-
NOT_SUPPORTED_AES_GCM
- See Also:
-
-
Constructor Details
-
VersionConforming
public VersionConforming()
-
-
Method Details
-
validatePdfVersionForDictEntry
public static boolean validatePdfVersionForDictEntry(PdfDocument document, PdfVersion expectedVersion, PdfName entryKey, PdfName dictType) -
validatePdfVersionForDeprecatedFeatureLogWarn
public static boolean validatePdfVersionForDeprecatedFeatureLogWarn(PdfDocument document, PdfVersion expectedVersion, String deprecatedFeatureLogMessage) -
validatePdfVersionForDeprecatedFeatureLogError
public static boolean validatePdfVersionForDeprecatedFeatureLogError(PdfDocument document, PdfVersion expectedVersion, String deprecatedFeatureLogMessage) -
validatePdfVersionForNotSupportedFeatureLogError
public static boolean validatePdfVersionForNotSupportedFeatureLogError(PdfDocument document, PdfVersion expectedStartVersion, String notSupportedFeatureLogMessage) Logs error message in case provided PDF document version is earlier than specified expected starting version.- Parameters:
-
document
- PDF document to check version for -
expectedStartVersion
- starting version since which new feature is supported -
notSupportedFeatureLogMessage
- error message to log - Returns:
-
boolean value specifying whether validation passed (
true
) or failed (false
)
-