Class WellTaggedPdfDocument

java.lang.Object
com.itextpdf.kernel.pdf.PdfDocument
com.itextpdf.pdfua.wtpdf.WellTaggedPdfDocument
All Implemented Interfaces:
Closeable, AutoCloseable

public class WellTaggedPdfDocument extends PdfDocument
Creates a Well Tagged PDF document. This class is an extension of PdfDocument and adds the necessary configuration for Well Tagged conformance. It will add necessary validation to guide the user to create a Well Tagged compliant document.
  • Constructor Details

    • WellTaggedPdfDocument

      public WellTaggedPdfDocument (PdfWriter writer, WellTaggedPdfConfig config)
      Creates a WellTaggedPdfDocument instance.
      Parameters:
      writer - The writer to write the PDF document
      config - The configuration for the Well Tagged document
    • WellTaggedPdfDocument

      public WellTaggedPdfDocument (PdfWriter writer, DocumentProperties properties, WellTaggedPdfConfig config)
      Creates a WellTaggedPdfDocument instance.
      Parameters:
      writer - The writer to write the PDF document
      properties - The properties for the PDF document
      config - The configuration for the Well Tagged document
    • WellTaggedPdfDocument

      public WellTaggedPdfDocument (PdfReader reader, PdfWriter writer, WellTaggedPdfConfig config)
      Creates a WellTaggedPdfDocument instance.
      Parameters:
      reader - The reader to read the PDF document
      writer - The writer to write the PDF document
      config - The configuration for the Well Tagged document
    • WellTaggedPdfDocument

      public WellTaggedPdfDocument (PdfReader reader, PdfWriter writer, StampingProperties properties, WellTaggedPdfConfig config)
      Creates a WellTaggedPdfDocument instance.
      Parameters:
      reader - The reader to read the PDF document
      writer - The writer to write the PDF document
      properties - The properties for the PDF document
      config - The configuration for the Well Tagged document
  • Method Details

    • createCheckers

      protected List<IValidationChecker> createCheckers (PdfConformance conformance)
      Creates a list of IValidationChecker for Well Tagged conformance. If you want to enable/disable specific checks, you can override the implementation.
      Parameters:
      conformance - the Well Tagged PDF conformance for which the checkers should be created
      Returns:
      list of Well Tagged related checkers