<?xpacket begin='\uFEFF' id='W5M0MpCehiHzreSzNTczkc9d'?> The id should not be created on the fly. It is fixed. See XMP Specification.
------------ Eli Segev -----Original Message----- From: Leonard Rosenthol [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 14, 2006 10:21 AM To: Segev, Eli; bruno; Phil Poupart Cc: [email protected] Subject: RE: [iText-questions] Add XMP tags to PDF At 09:33 AM 3/14/2006, Segev, Eli wrote: >Your example is incomplete. XMP is based on RFD and it is more >convoluted than in your example. RDF, Resource Definition Format, not RFD ;). But RDF is really just another XML grammar, so it can be treated as such. >The XMP packet in the byte array is composed of XMP headers and RDF >data. I don't know at this point of any Java XMP parser that handles >both. My solution is to update the RFD data with an RFD parser and to >add the XMP headers like this: Again, you can either treat it as RDF (which would be the higher level) OR as just straight XML (and then apply RDF to that). Either way, that's up to you and outside the bounds of iText. >result.append("<?xpacket begin='\uFEFF' id='W5M0MpCehiHzreSzNTczkc9d'?>"); You probably want your id created on the fly instead of static... Leonard ------------------------------------------------------------------------ --- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
