Package org.verapdf.pdfa
Interface MetadataFixer
-
- All Superinterfaces:
AutoCloseable,Closeable,Component
public interface MetadataFixer extends Component
Simple interface for PDF/A metadata repair.- Author:
- Carl Wilson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetadataFixerResultfixMetadata(InputStream toFix, OutputStream outputRepaired, ValidationResult result)MetadataFixerResultfixMetadata(PDFAParser parser, OutputStream outputRepaired, ValidationResult result)-
Methods inherited from interface org.verapdf.component.Component
getDetails
-
-
-
-
Method Detail
-
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.
-
-