Interface Metadata
public interface Metadata
Current interface provide necessary behavior of pdf metadata
for
MetadataFixer- Author:
- Evgeniy Muravitskiy
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPDFIdentificationSchema(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 flavourGetAdobePDFrepresentation.GetDublinCorerepresentation.GetXMPBasicrepresentation.booleanvoidremovePDFIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour) Remove identification schema ifMetadataFixerImplcan not repair document to valid PDF/A Document.voidsetNeedToBeUpdated(boolean needToBeUpdated) voidupdateMetadataStream(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour) Update metadata stream from applied changes.
-
Method Details
-
checkMetadataStream
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
Add PDF/A identification schema ifMetadataFixerImplbe able to repair document to valid PDF/A document.- Parameters:
resultBuilder- report applied changesflavour- the checked flavour
-
getDublinCoreSchema
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
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
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() -
setNeedToBeUpdated
void setNeedToBeUpdated(boolean needToBeUpdated) - Parameters:
needToBeUpdated-
-
updateMetadataStream
void updateMetadataStream(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour) throws Exception Update metadata stream from applied changes. If metadata was not changed than no updates applied- Throws:
Exception- problems with stream update
-