Class VersionConforming

java.lang.Object
com.itextpdf.kernel.pdf.VersionConforming

public class VersionConforming extends Object
  • Field Details

  • 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)