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) |
void |
addOutputIntent(PdfOutputIntent outputIntent) |
protected void |
checkIsoConformance() |
void |
checkIsoConformance(Object obj,
IsoKey key,
PdfResources resources,
PdfStream contentStream,
Object extra) |
protected void |
flushInfoDictionary(boolean appendMode) |
protected void |
flushObject(PdfObject pdfObject,
boolean canBeInObjStm) |
IConformanceLevel |
getConformanceLevel() |
PdfFont |
getDefaultFont()
No default font for PDF/A documents.
|
protected IPdfPageFactory |
getPageFactory() |
protected void |
initTagStructureContext()
Initializes tagStructureContext to track necessary information of document's tag structure.
|
protected void |
setChecker(PdfAChecker checker) |
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, addPage, addPage, checkAndAddPage, checkAndAddPage, checkClosingStatus, checkIsoConformance, checkIsoConformance, checkShowTextIsoConformance, close, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, copyPagesTo, createNextIndirectReference, dispatchEvent, dispatchEvent, findFont, flushCopiedObjects, flushFonts, getAssociatedFiles, getCatalog, getDefaultPageSize, getDiContainer, getDocumentFonts, getDocumentId, getDocumentIdWrapper, getDocumentInfo, getEncryptedPayloadDocument, getFingerPrint, getFirstPage, getFont, getLastPage, getMemoryLimitsAwareHandler, 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 PdfFont getDefaultFont()
getDefaultFont in class PdfDocumentnull.public IConformanceLevel getConformanceLevel()
getConformanceLevel in class PdfDocumentpublic void addOutputIntent(PdfOutputIntent outputIntent)
addOutputIntent in class PdfDocumentoutputIntent - protected void addCustomMetadataExtensions(XMPMeta xmpMeta)
addCustomMetadataExtensions in class PdfDocumentprotected void updateXmpMetadata()
updateXmpMetadata in class PdfDocumentprotected void checkIsoConformance()
checkIsoConformance in class PdfDocumentpublic void checkIsoConformance(Object obj, IsoKey key, PdfResources resources, PdfStream contentStream, Object extra)
checkIsoConformance in class PdfDocumentobj - an object to conform.key - type of object to conform.resources - PdfResources associated with an object to check.contentStream - current content stream.extra - extra data required for the check.protected void flushObject(PdfObject pdfObject, boolean canBeInObjStm) throws IOException
flushObject in class PdfDocumentIOExceptionprotected void setChecker(PdfAConformanceLevel conformanceLevel)
conformanceLevel - PdfAConformanceLevelprotected void setChecker(PdfAChecker checker)
protected void initTagStructureContext()
initTagStructureContext in class PdfDocumentprotected IPdfPageFactory getPageFactory()
getPageFactory in class PdfDocumentprotected void flushInfoDictionary(boolean appendMode)
flushInfoDictionary in class PdfDocumentappendMode - Copyright © 1998–2024 Apryse Group NV. All rights reserved.