SerializeOptions serializeOptions = new SerializeOptions();
serializeOptions.setPadding(2000);
XMPMetaFactory.serialize(xmpMeta, baos, serializeOptions);
} else {
XmpWriter xmpw = createXmpWriter(baos, newInfo);
xmpw.close();
}
xmp = new PdfStream(baos.toByteArray());
} catch(XMPException e) {
xmp = new PdfStream(altMetadata);
} catch(IOException e) {