| Constructor and Description |
|---|
MetadataImpl(VeraPDFMeta metadata,
COSObject stream,
COSDocument doc,
boolean isStreamCreated) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder,
PDFAFlavour flavour)
Add PDF/A identification schema if
MetadataFixerImpl
be able to repair document to valid PDF/A document. |
void |
checkMetadataStream(MetadataFixerResultImpl.Builder resultBuilder,
PDFAFlavour flavour)
Add required fields to stream dictionary and add FlateDecode Filter for part 2 and 3 flavours or remove filters for part 1 flavour
|
AdobePDF |
getAdobePDFSchema(InfoDictionary info)
Get
AdobePDF representation. |
DublinCore |
getDublinCoreSchema(InfoDictionary info)
Get
DublinCore representation. |
XMPBasic |
getXMPBasicSchema(InfoDictionary info)
Get
XMPBasic representation. |
boolean |
isNeedToBeUpdated() |
void |
removePDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder,
PDFAFlavour flavour)
Remove identification schema if
MetadataFixerImpl
can not repair document to valid PDF/A Document. |
void |
setNeedToBeUpdated(boolean needToBeUpdated) |
void |
updateMetadataStream()
Update metadata stream from applied changes.
|
public MetadataImpl(VeraPDFMeta metadata, COSObject stream, COSDocument doc, boolean isStreamCreated)
metadata - stream - public void checkMetadataStream(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
MetadatacheckMetadataStream in interface MetadataresultBuilder - report applied changespublic void removePDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
MetadataMetadataFixerImpl
can not repair document to valid PDF/A Document.removePDFIdentificationSchema in interface MetadataresultBuilder - report applied changespublic void addPDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
MetadataMetadataFixerImpl
be able to repair document to valid PDF/A document.addPDFIdentificationSchema in interface MetadataresultBuilder - report applied changesflavour - the checked flavourpublic DublinCore getDublinCoreSchema(InfoDictionary info)
MetadataDublinCore representation. If current schema not presented
in metadata but Information dictionary consist corresponding values
than must return empty dublin core schema.getDublinCoreSchema in interface Metadatainfo - information dictionary representation of current documentDublinCore schema or nullpublic AdobePDF getAdobePDFSchema(InfoDictionary info)
MetadataAdobePDF representation. If current schema not presented
in metadata but Information dictionary consist corresponding values
than must return empty dublin core schema.getAdobePDFSchema in interface Metadatainfo - information dictionary representation of current documentAdobePDF schema or nullpublic XMPBasic getXMPBasicSchema(InfoDictionary info)
MetadataXMPBasic representation. If current schema not presented
in metadata but Information dictionary consist corresponding values
than must return empty dublin core schema.getXMPBasicSchema in interface Metadatainfo - information dictionary representation of current documentXMPBasic schema or nullpublic boolean isNeedToBeUpdated()
isNeedToBeUpdated in interface Metadatapublic void setNeedToBeUpdated(boolean needToBeUpdated)
setNeedToBeUpdated in interface Metadatapublic void updateMetadataStream()
throws IOException,
XMPException
MetadataupdateMetadataStream in interface MetadataIOExceptionXMPExceptionCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.