I am using iTexSharp to update basic metadata (Title, Author, Keywords,
etc.) on a bunch of PDF files.
I found no easy method to edit existing XMP streams.

XmpReader with its ReplaceDescriptionAttribute() method might be the way to
go, but I haven’t guessed how to use it.
Sure, I could parse the metadata into a DOM, then edit, then serialize and
then put it back, but that sounds like a painstaking job!

Let me suggest what might improve the toolkit in this area:
- An XmpWriter would be constructed from an existing XMP stream. Any added
description would replace the existing value if present.
- Right now the XML is only given as an array of bytes. Natural (Java/.Net)
strings would spare the programmer from dealing with encoding.

-- Laurent CAPRANI
   Montréal


------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Reply via email to