public interface MetadataFixer extends Component
| Modifier and Type | Method and Description |
|---|---|
MetadataFixerResult |
fixMetadata(InputStream toFix,
OutputStream outputRepaired,
ValidationResult result) |
MetadataFixerResult |
fixMetadata(PDFAParser parser,
OutputStream outputRepaired,
ValidationResult result) |
getDetailsMetadataFixerResult fixMetadata(InputStream toFix, OutputStream outputRepaired, ValidationResult result) throws IOException
toFix - an InputStream from which the PDF/A data to repair can
be read.outputRepaired - an OutputStream to which the Fixer instance should
write the repaired PDF/A data.result - a ValidationResult instance for the PDF/A to be
repaired, the toFix InputStream.MetadataFixerResult that holds the repair status and
records any fixes applied.IOExceptionMetadataFixerResult fixMetadata(PDFAParser parser, OutputStream outputRepaired, ValidationResult result)
parser - a veraPDF PDFAParser instance that has parsed the
PDF/A to repair.outputRepaired - an OutputStream to which the Fixer instance should
write the repaired PDF/A data.result - a ValidationResult instance for the PDF/A to be
repaired, the toFix InputStream.MetadataFixerResult that holds the repair status and
records any fixes applied.Copyright © 2015–2020 The veraPDF Consortium. All rights reserved.