Package com.itextpdf.pdfua.wtpdf
Class WellTaggedPdfDocument
java.lang.Object
com.itextpdf.kernel.pdf.PdfDocument
com.itextpdf.pdfua.wtpdf.WellTaggedPdfDocument
- All Implemented Interfaces:
-
Closeable,AutoCloseable
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.
-
Field Summary
Fields inherited from class com.itextpdf.kernel.pdf.PdfDocument
catalog, closed, closeReader, closeWriter, defaultFontStrategy, documentInfoHelper, fingerPrint, flushUnusedObjects, isClosing, pdfConformance, pdfPageFactory, pdfVersion, properties, reader, serializeOptions, structParentIndex, structTreeRoot, tagStructureContext, trailer, writer -
Constructor Summary
ConstructorsConstructorDescriptionWellTaggedPdfDocument(PdfReader reader, PdfWriter writer, StampingProperties properties, WellTaggedPdfConfig config) Creates a WellTaggedPdfDocument instance.WellTaggedPdfDocument(PdfReader reader, PdfWriter writer, WellTaggedPdfConfig config) Creates a WellTaggedPdfDocument instance.WellTaggedPdfDocument(PdfWriter writer, DocumentProperties properties, WellTaggedPdfConfig config) Creates a WellTaggedPdfDocument instance.WellTaggedPdfDocument(PdfWriter writer, WellTaggedPdfConfig config) Creates a WellTaggedPdfDocument instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected List<IValidationChecker>createCheckers(PdfConformance conformance) Creates a list ofIValidationCheckerfor Well Tagged conformance.Methods inherited from class com.itextpdf.kernel.pdf.PdfDocument
addAssociatedFile, addEventHandler, addFileAttachment, addFont, addNamedDestination, addNamedDestination, addNewPage, addNewPage, addNewPage, addNewPage, addOutputIntent, addPage, addPage, checkAndAddPage, checkAndAddPage, checkClosingStatus, checkIsoConformance, close, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, createNextIndirectReference, dispatchEvent, findFont, flushCopiedObjects, flushFonts, flushObject, getAssociatedFiles, getCatalog, getConformance, getDefaultFont, getDefaultPageSize, getDiContainer, getDocumentFonts, getDocumentId, getDocumentIdWrapper, getDocumentInfo, getEncryptedPayloadDocument, getFingerPrint, getFirstPage, getFont, getLastPage, getMemoryLimitsAwareHandler, getModifiedDocumentId, getNextStructParentIndex, getNumberOfPages, getNumberOfPdfObjects, getOriginalDocumentId, getOutlines, getPage, getPage, getPageFactory, getPageLabels, getPageNumber, getPageNumber, getPdfObject, getPdfVersion, getReader, getSerializeOptions, getStructTreeRoot, getTagStructureContext, getTrailer, getWriter, getXmpMetadata, getXmpMetadata, getXmpMetadataBytes, getXmpMetadataBytes, hasEventHandler, hasOutlines, initializeOutlines, initTagStructureContext, isAppendMode, isClosed, isCloseReader, isCloseWriter, isClosing, isFlushUnusedObjects, isTagged, listIndirectReferences, markStreamAsEmbeddedFile, movePage, movePage, open, registerProduct, removeAllHandlers, removeEventHandler, removePage, removePage, setCloseReader, setCloseWriter, setDefaultPageSize, setEncryptedPayload, setFlushUnusedObjects, setSerializeOptions, setTagged, setUserProperties, setXmpMetadata, setXmpMetadata, setXmpMetadata, storeDestinationToReaddress, tryInitTagStructure, updateDefaultXmpMetadata, updateXmpMetadata
-
Constructor Details
-
WellTaggedPdfDocument
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
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
Creates a list ofIValidationCheckerfor 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
-