Package org.verapdf.pdfa
Interface MetadataFixer
-
- All Superinterfaces:
AutoCloseable
,Closeable
,Component
- All Known Implementing Classes:
GFMetadataFixerImpl
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 MetadataFixerResult
fixMetadata(InputStream toFix, OutputStream outputRepaired, ValidationResult result)
MetadataFixerResult
fixMetadata(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
- anInputStream
from which the PDF/A data to repair can be read.outputRepaired
- anOutputStream
to which the Fixer instance should write the repaired PDF/A data.result
- aValidationResult
instance for the PDF/A to be repaired, the toFix InputStream.- Returns:
- a
MetadataFixerResult
that holds the repair status and records any fixes applied. - Throws:
IOException
-
fixMetadata
MetadataFixerResult fixMetadata(PDFAParser parser, OutputStream outputRepaired, ValidationResult result)
- Parameters:
parser
- a veraPDFPDFAParser
instance that has parsed the PDF/A to repair.outputRepaired
- anOutputStream
to which the Fixer instance should write the repaired PDF/A data.result
- aValidationResult
instance for the PDF/A to be repaired, the toFix InputStream.- Returns:
- a
MetadataFixerResult
that holds the repair status and records any fixes applied.
-
-