Interface Metadata
-
- All Known Implementing Classes:
MetadataImpl
public interface Metadata
Current interface provide necessary behavior of pdf metadata forMetadataFixerImpl
- Author:
- Evgeniy Muravitskiy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addPDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
Add PDF/A identification schema ifMetadataFixerImpl
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 flavourAdobePDF
getAdobePDFSchema(InfoDictionary info)
GetAdobePDF
representation.DublinCore
getDublinCoreSchema(InfoDictionary info)
GetDublinCore
representation.XMPBasic
getXMPBasicSchema(InfoDictionary info)
GetXMPBasic
representation.boolean
isNeedToBeUpdated()
void
removePDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour)
Remove identification schema ifMetadataFixerImpl
can not repair document to valid PDF/A Document.void
setNeedToBeUpdated(boolean needToBeUpdated)
void
updateMetadataStream()
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 ifMetadataFixerImpl
can 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 ifMetadataFixerImpl
be able to repair document to valid PDF/A document.- Parameters:
resultBuilder
- report applied changesflavour
- the checked flavour
-
getDublinCoreSchema
DublinCore getDublinCoreSchema(InfoDictionary info)
GetDublinCore
representation. 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:
DublinCore
schema or null
-
getAdobePDFSchema
AdobePDF getAdobePDFSchema(InfoDictionary info)
GetAdobePDF
representation. 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:
AdobePDF
schema or null
-
getXMPBasicSchema
XMPBasic getXMPBasicSchema(InfoDictionary info)
GetXMPBasic
representation. 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:
XMPBasic
schema or null
-
isNeedToBeUpdated
boolean isNeedToBeUpdated()
- Returns:
-
setNeedToBeUpdated
void setNeedToBeUpdated(boolean needToBeUpdated)
- Parameters:
needToBeUpdated
-
-
-