> Can you extract the XMP from the original PDF, > then from the altered PDF, and compare those XMLs?
The problem seems to be the producer (line 9). iText 2.1.7 inserts some strange control character instead of the original OpenOffice Text which I can't copy in texteditor. iText 5.1.0 does it right and I was wrong when I say also 5.1.0 PDFStamper produces a pdf file which will not be validated. It will... Can I manually manipulate the xml metadata in the target pdf and correct the producer line with iText 2.1.7? Original XML-Metadata: <?xpacket begin="?" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/"> <pdfaid:part>1</pdfaid:part> <pdfaid:conformance>A</pdfaid:conformance> </rdf:Description> <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> <pdf:Producer>OpenOffice.org 3.1</pdf:Producer> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <xmp:CreatorTool>Writer</xmp:CreatorTool> <xmp:CreateDate>2010-12-08T06:59:03+01:00</xmp:CreateDate> </rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="w"?> PdfStamper XML-Metadata iText 2.1.7: <?xpacket begin="?" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/"> <pdfaid:part>1</pdfaid:part> <pdfaid:conformance>A</pdfaid:conformance> </rdf:Description> <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> <pdf:Producer>þÿ1; modified using iText 2.1.7 by 1T3XT</pdf:Producer> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <xmp:CreatorTool>Writer</xmp:CreatorTool> <xmp:CreateDate>2010-12-08T06:59:03+01:00</xmp:CreateDate> <xmp:ModifyDate>2011-05-30T10:43:24+02:00</xmp:ModifyDate></rdf:Description> </rdf:RDF> </x:xmpmeta> <?xpacket end="w"?> PdfStamper XML-Metadata iText 5.1.0: <?xpacket begin="?" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> <rdf:Description rdf:about="" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/"> <pdfaid:part>1</pdfaid:part> <pdfaid:conformance>A</pdfaid:conformance> </rdf:Description> <rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/"> <pdf:Producer>OpenOffice.org 3.1; modified using iText® 5.1.0 ©2000-2011 1T3XT BVBA</pdf:Producer> </rdf:Description> <rdf:Description rdf:about="" xmlns:xmp="http://ns.adobe.com/xap/1.0/"> <xmp:CreatorTool>Writer</xmp:CreatorTool> <xmp:CreateDate>2010-12-08T06:59:03+01:00</xmp:CreateDate> <xmp:ModifyDate>2011-05-30T11:08:04+02:00</xmp:ModifyDate></rdf:Description> </rdf:RDF> </x:xmpmeta> ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
