Interface Metadata
-
public interface MetadataCurrent interface provide necessary behavior of pdf metadata forMetadataFixerImpl- Author:
- Evgeniy Muravitskiy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)Add PDF/A identification schema ifMetadataFixerImplbe able to repair document to valid PDF/A document.voidcheckMetadataStream(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 flavourAdobePDFgetAdobePDFSchema(InfoDictionary info)GetAdobePDFrepresentation.DublinCoregetDublinCoreSchema(InfoDictionary info)GetDublinCorerepresentation.XMPBasicgetXMPBasicSchema(InfoDictionary info)GetXMPBasicrepresentation.booleanisNeedToBeUpdated()voidremovePDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)Remove identification schema ifMetadataFixerImplcan not repair document to valid PDF/A Document.voidsetNeedToBeUpdated(boolean needToBeUpdated)voidupdateMetadataStream()Update metadata stream from applied changes.
-
-
-
Method Detail
-
checkMetadataStream
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- Parameters:
resultBuilder- report applied changes
-
removePDFIdentificationSchema
void removePDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
Remove identification schema ifMetadataFixerImplcan not repair document to valid PDF/A Document.- Parameters:
resultBuilder- report applied changes
-
addPDFIdentificationSchema
void addPDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
Add PDF/A identification schema ifMetadataFixerImplbe able to repair document to valid PDF/A document.- Parameters:
resultBuilder- report applied changesflavour- the checked flavour
-
getDublinCoreSchema
DublinCore getDublinCoreSchema(InfoDictionary info)
GetDublinCorerepresentation. If current schema not presented in metadata but Information dictionary consist corresponding values than must return empty dublin core schema.- Parameters:
info- information dictionary representation of current document- Returns:
DublinCoreschema or null
-
getAdobePDFSchema
AdobePDF getAdobePDFSchema(InfoDictionary info)
GetAdobePDFrepresentation. If current schema not presented in metadata but Information dictionary consist corresponding values than must return empty dublin core schema.- Parameters:
info- information dictionary representation of current document- Returns:
AdobePDFschema or null
-
getXMPBasicSchema
XMPBasic getXMPBasicSchema(InfoDictionary info)
GetXMPBasicrepresentation. If current schema not presented in metadata but Information dictionary consist corresponding values than must return empty dublin core schema.- Parameters:
info- information dictionary representation of current document- Returns:
XMPBasicschema or null
-
isNeedToBeUpdated
boolean isNeedToBeUpdated()
- Returns:
-
setNeedToBeUpdated
void setNeedToBeUpdated(boolean needToBeUpdated)
- Parameters:
needToBeUpdated-
-
-