public final class PBoxMetadataFixerImpl extends Object
| Constructor and Description |
|---|
PBoxMetadataFixerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MetadataFixerResult |
fixMetadata(InputStream toFix,
OutputStream outputRepaired,
ValidationResult result) |
static MetadataFixerResult |
fixMetadata(OutputStream output,
PDFDocument document,
ValidationResult result,
boolean fixIdentification,
ProcessedObjectsParser parser)
Fix metadata and info dictionary for
PDFDocument and save fixed file
a certain path. |
MetadataFixerResult |
fixMetadata(PDFAParser parser,
OutputStream outputRepaired,
ValidationResult result) |
ComponentDetails |
getDetails() |
public MetadataFixerResult 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.IOExceptionpublic MetadataFixerResult 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.public void close()
public static MetadataFixerResult fixMetadata(OutputStream output, PDFDocument document, ValidationResult result, boolean fixIdentification, ProcessedObjectsParser parser)
PDFDocument and save fixed file
a certain path. If fixer no changes apply then no save will be produced.output - stream to result filepublic ComponentDetails getDetails()
getDetails in interface ComponentCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.