byte[] tmp = getXpacket(document.getDocument());
XMPDocumentBuilder builder;
try {
builder = new XMPDocumentBuilder();
builder.addPreprocessor(new PDFAExtentionSchemaPreprocessor());
} catch (XmpSchemaException e1) {
throw new ValidationException(e1.getMessage(), e1);
}
XMPMetadata metadata;
try {