public class MetadataValidationProcess extends AbstractProcess
| Constructor and Description |
|---|
MetadataValidationProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected List<ValidationResult.ValidationError> |
checkStreamFilterUsage(PDDocument doc)
Check if metadata dictionary has no stream filter
|
static byte[] |
getXpacket(COSDocument cdocument)
Return the xpacket from the dictionary's stream
|
void |
validate(PreflightContext ctx) |
addValidationError, addValidationErrorspublic void validate(PreflightContext ctx) throws ValidationException
ValidationExceptionpublic static byte[] getXpacket(COSDocument cdocument) throws IOException, XpacketParsingException
IOExceptionXpacketParsingExceptionprotected List<ValidationResult.ValidationError> checkStreamFilterUsage(PDDocument doc)
doc - the document to check.Copyright © 2015–2021 The veraPDF Consortium. All rights reserved.