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, addValidationErrors
public void validate(PreflightContext ctx) throws ValidationException
ValidationException
public static byte[] getXpacket(COSDocument cdocument) throws IOException, XpacketParsingException
IOException
XpacketParsingException
protected List<ValidationResult.ValidationError> checkStreamFilterUsage(PDDocument doc)
doc
- Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.