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, currentPage, defaultPageSize, eventDispatcher, fingerPrint, flushUnusedObjects, info, isClosing, pdfVersion, properties, reader, 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)
Open 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)
Deprecated.
|
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 List<ICounter> |
getCounters()
Deprecated.
|
protected IPdfPageFactory |
getPageFactory() |
protected void |
initTagStructureContext() |
protected void |
setChecker(PdfAConformanceLevel conformanceLevel) |
protected void |
updateXmpMetadata() |
addAssociatedFile, addEventHandler, addFileAttachment, addFont, 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, getDocumentInfo, getEncryptedPayloadDocument, getFingerPrint, getFirstPage, getFont, getLastPage, getModifiedDocumentId, getNextStructParentIndex, getNumberOfPages, getNumberOfPdfObjects, getOriginalDocumentId, getOutlines, getPage, getPage, getPageLabels, getPageNumber, getPageNumber, getPdfObject, getPdfVersion, getReader, getStructTreeRoot, getTagStructureContext, getTrailer, getWriter, getXmpMetadata, getXmpMetadata, hasEventHandler, hasOutlines, initializeOutlines, isAppendMode, isClosed, isCloseReader, isCloseWriter, isFlushUnusedObjects, isTagged, listIndirectReferences, markObjectAsMustBeFlushed, movePage, movePage, open, registerProduct, removeAllHandlers, removeEventHandler, removePage, removePage, setCloseReader, setCloseWriter, setDefaultPageSize, setEncryptedPayload, setFlushUnusedObjects, setTagged, setUserProperties, setXmpMetadata, setXmpMetadata, setXmpMetadata, storeLinkAnnotation, 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 PdfDocument@Deprecated public void checkIsoConformance(Object obj, IsoKey key, PdfResources resources)
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)
protected void initTagStructureContext()
initTagStructureContext in class PdfDocument@Deprecated protected List<ICounter> getCounters()
getCounters in class PdfDocumentprotected IPdfPageFactory getPageFactory()
getPageFactory in class PdfDocumentCopyright © 1998–2020 iText Group NV. All rights reserved.