5051525354555657
// step 4 document.add(new Paragraph("Hello World")); // step 5 document.close(); CompareTool ct = new CompareTool(); Assert.assertNull(ct.compareXmp(OUT_FOLDER + fileName, CMP_FOLDER + fileName, true)); }
7374757677787980
document.open(); // step 4 document.add(new Paragraph("Hello World")); // step 5 document.close(); CompareTool ct = new CompareTool(); Assert.assertNull(ct.compareXmp(OUT_FOLDER + fileName, CMP_FOLDER + fileName, true)); }
9091929394959697
xmp.close(); stamper.setXmpMetadata(baos.toByteArray()); stamper.close(); reader.close(); CompareTool ct = new CompareTool(); Assert.assertNull(ct.compareXmp(OUT_FOLDER + fileName, CMP_FOLDER + fileName, true)); }
109110111112113114115116
PdfProperties.setVersion(xmp.getXmpMeta(), "1.4"); stamper.close(); reader.close(); CompareTool ct = new CompareTool(); Assert.assertNull(ct.compareXmp(OUT_FOLDER + fileName, CMP_FOLDER + fileName, true)); }
141142143144145146147148
document.open(); // step 4 document.add(new Paragraph("Hello World")); // step 5 document.close(); CompareTool ct = new CompareTool(); Assert.assertNull(ct.compareXmp(OUT_FOLDER + fileName, CMP_FOLDER + "xmp_metadata.pdf", true)); }