virtual public void ManipulatePdf2Test() { String fileName = "xmp_metadata_added2.pdf"; PdfReader reader = new PdfReader(CMP_FOLDER + "pdf_metadata.pdf"); PdfStamper stamper = new PdfStamper(reader, new FileStream(OUT_FOLDER + fileName, FileMode.Create)); stamper.CreateXmpMetadata(); XmpWriter xmp = stamper.XmpWriter; DublinCoreProperties.AddSubject(xmp.XmpMeta, "Hello World"); DublinCoreProperties.AddSubject(xmp.XmpMeta, "XMP & Metadata"); DublinCoreProperties.AddSubject(xmp.XmpMeta, "Metadata"); PdfProperties.SetVersion(xmp.XmpMeta, "1.4"); stamper.Close(); reader.Close(); CompareResults(fileName, fileName); }