bruno wrote:
I have studied the XMP specs and added a simple XmpWriter to CVS. PdfWriter now has a method addXmpMetadata. Try it out and let me know if it works.
Small sample: ByteArrayOutputStream os = new ByteArrayOutputStream(); XmpWriter xmp = new XmpWriter(os); XmpSchema dc = new DublinCoreSchema(XmpSchema.FULL); dc.setProperty(DublinCoreSchema.SUBJECT, "<rdf:bag><rdf:li>Hello World</rdf:li>" + "<rdf:li>XMP</rdf:li>" + "<rdf:li>Metadata</rdf:li></rdf:bag>"); xmp.addRdfDescription(dc); PdfSchema pdf = new PdfSchema(XmpSchema.SHORTHAND); pdf.setProperty(PdfSchema.KEYWORDS, "Hello World, XMP, Metadata"); pdf.setProperty(PdfSchema.VERSION, "1.4"); xmp.addRdfDescription(pdf); xmp.close(); writer.setXmpMetadata(os.toByteArray()); (Will only work with the CVS version!!!) ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
