Package org.verapdf.pdfa
Interface MetadataFixer
- All Superinterfaces:
AutoCloseable,Closeable,Component
- All Known Implementing Classes:
GFMetadataFixerImpl
Simple interface for PDF/A metadata repair.
- Author:
- Carl Wilson
-
Method Summary
Modifier and TypeMethodDescriptionfixMetadata(InputStream toFix, OutputStream outputRepaired, ValidationResult result) fixMetadata(PDFAParser parser, OutputStream outputRepaired, ValidationResult result) Methods inherited from interface org.verapdf.component.Component
getDetails
-
Method Details
-
fixMetadata
MetadataFixerResult fixMetadata(InputStream toFix, OutputStream outputRepaired, ValidationResult result) throws IOException - Parameters:
toFix- anInputStreamfrom which the PDF/A data to repair can be read.outputRepaired- anOutputStreamto which the Fixer instance should write the repaired PDF/A data.result- aValidationResultinstance for the PDF/A to be repaired, the toFix InputStream.- Returns:
- a
MetadataFixerResultthat holds the repair status and records any fixes applied. - Throws:
IOException
-
fixMetadata
MetadataFixerResult fixMetadata(PDFAParser parser, OutputStream outputRepaired, ValidationResult result) - Parameters:
parser- a veraPDFPDFAParserinstance that has parsed the PDF/A to repair.outputRepaired- anOutputStreamto which the Fixer instance should write the repaired PDF/A data.result- aValidationResultinstance for the PDF/A to be repaired, the toFix InputStream.- Returns:
- a
MetadataFixerResultthat holds the repair status and records any fixes applied.
-