public class PdfADocument extends PdfDocument
PdfDocument and is in charge of creating files
that comply with the PDF/A standard.
Client code is still responsible for making sure the file is actually PDF/A
compliant: multiple steps must be undertaken (depending on the
PdfAConformanceLevel) to ensure that the PDF/A standard is followed.
This class will throw exceptions, mostly PdfAConformanceException,
and thus refuse to output a PDF/A file if at any point the document does not
adhere to the PDF/A guidelines specified by the PdfAConformanceLevel.| Modifier and Type | Field and Description |
|---|---|
protected PdfAChecker |
checker |
catalog, closed, closeReader, closeWriter, eventDispatcher, fingerPrint, flushUnusedObjects, info, isClosing, pdfVersion, properties, reader, serializeOptions, structParentIndex, structTreeRoot, tagStructureContext, trailer, writer, xmpMetadata| Constructor and Description |
|---|
PdfADocument(PdfReader reader,
PdfWriter writer)
Opens a PDF/A document in the stamping mode.
|
PdfADocument(PdfReader reader,
PdfWriter writer,
StampingProperties properties)
Opens a PDF/A document in stamping mode.
|
PdfADocument(PdfWriter writer,
PdfAConformanceLevel conformanceLevel,
PdfOutputIntent outputIntent)
Constructs a new PdfADocument for writing purposes, i.e.
|
PdfADocument(PdfWriter writer,
PdfAConformanceLevel conformanceLevel,
PdfOutputIntent outputIntent,
DocumentProperties properties)
Constructs a new PdfADocument for writing purposes, i.e.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCustomMetadataExtensions(XMPMeta xmpMeta) |
protected void |
checkIsoConformance() |
void |
checkIsoConformance(Object obj,
IsoKey key) |
void |
checkIsoConformance(Object obj,
IsoKey key,
PdfResources resources,
PdfStream contentStream) |
protected void |
flushFonts() |
protected void |
flushObject(PdfObject pdfObject,
boolean canBeInObjStm) |
PdfAConformanceLevel |
getConformanceLevel()
Gets the PdfAConformanceLevel set in the constructor or in the metadata
of the
PdfReader. |
protected IPdfPageFactory |
getPageFactory() |
protected void |
initTagStructureContext()
Initializes tagStructureContext to track necessary information of document's tag structure.
|
protected void |
setChecker(PdfAConformanceLevel conformanceLevel)
Sets the checker that defines the requirements of the PDF/A standard
depending on conformance level.
|
protected void |
updateXmpMetadata() |
addAssociatedFile, addEventHandler, addFileAttachment, addFont, addNamedDestination, addNamedDestination, addNewPage, addNewPage, addNewPage, addNewPage, addOutputIntent, addPage, addPage, checkAndAddPage, checkAndAddPage, checkClosingStatus, checkShowTextIsoConformance, close, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, createNextIndirectReference, dispatchEvent, dispatchEvent, findFont, flushCopiedObjects, getAssociatedFiles, getCatalog, getDefaultFont, getDefaultPageSize, getDocumentFonts, getDocumentId, getDocumentIdWrapper, getDocumentInfo, getEncryptedPayloadDocument, getFingerPrint, getFirstPage, getFont, getLastPage, getModifiedDocumentId, getNextStructParentIndex, getNumberOfPages, getNumberOfPdfObjects, getOriginalDocumentId, getOutlines, getPage, getPage, getPageLabels, getPageNumber, getPageNumber, getPdfObject, getPdfVersion, getReader, getSerializeOptions, getStructTreeRoot, getTagStructureContext, getTrailer, getWriter, getXmpMetadata, getXmpMetadata, hasEventHandler, hasOutlines, initializeOutlines, isAppendMode, isClosed, isCloseReader, isCloseWriter, isFlushUnusedObjects, isTagged, listIndirectReferences, markObjectAsMustBeFlushed, markStreamAsEmbeddedFile, movePage, movePage, open, registerProduct, removeAllHandlers, removeEventHandler, removePage, removePage, setCloseReader, setCloseWriter, setDefaultPageSize, setEncryptedPayload, setFlushUnusedObjects, setSerializeOptions, setTagged, setUserProperties, setXmpMetadata, setXmpMetadata, setXmpMetadata, storeDestinationToReaddress, tryInitTagStructure, updateDefaultXmpMetadataprotected PdfAChecker checker
public PdfADocument(PdfWriter writer, PdfAConformanceLevel conformanceLevel, PdfOutputIntent outputIntent)
writer - the PdfWriter object to write toconformanceLevel - the generation and strictness level of the PDF/A that must be followed.outputIntent - a PdfOutputIntentpublic PdfADocument(PdfWriter writer, PdfAConformanceLevel conformanceLevel, PdfOutputIntent outputIntent, DocumentProperties properties)
writer - the PdfWriter object to write toconformanceLevel - the generation and strictness level of the PDF/A that must be followed.outputIntent - a PdfOutputIntentproperties - a DocumentPropertiespublic PdfADocument(PdfReader reader, PdfWriter writer)
reader - PDF reader.writer - PDF writer.public PdfADocument(PdfReader reader, PdfWriter writer, StampingProperties properties)
reader - PDF reader.writer - PDF writer.properties - properties of the stamping processpublic void checkIsoConformance(Object obj, IsoKey key)
checkIsoConformance in class PdfDocumentpublic void checkIsoConformance(Object obj, IsoKey key, PdfResources resources, PdfStream contentStream)
checkIsoConformance in class PdfDocumentpublic PdfAConformanceLevel getConformanceLevel()
PdfReader.PdfAConformanceLevelprotected void addCustomMetadataExtensions(XMPMeta xmpMeta)
addCustomMetadataExtensions in class PdfDocumentprotected void updateXmpMetadata()
updateXmpMetadata in class PdfDocumentprotected void checkIsoConformance()
checkIsoConformance in class PdfDocumentprotected void flushObject(PdfObject pdfObject, boolean canBeInObjStm) throws IOException
flushObject in class PdfDocumentIOExceptionprotected void flushFonts()
flushFonts in class PdfDocumentprotected void setChecker(PdfAConformanceLevel conformanceLevel)
conformanceLevel - PdfAConformanceLevelprotected void initTagStructureContext()
initTagStructureContext in class PdfDocumentprotected IPdfPageFactory getPageFactory()
getPageFactory in class PdfDocumentCopyright © 1998–2023 Apryse Group NV. All rights reserved.