Interface Metadata
- All Known Implementing Classes:
MetadataImpl
public interface Metadata
Current interface provide necessary behavior of pdf metadata
for
MetadataFixerImpl
- Author:
- Evgeniy Muravitskiy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 flavourGetAdobePDF
representation.GetDublinCore
representation.GetXMPBasic
representation.boolean
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
(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 ifMetadataFixerImpl
can not repair document to valid PDF/A Document.- Parameters:
resultBuilder
- report applied changes
-
addPDFIdentificationSchema
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
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
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
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
-
-
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
-