Op 25/06/2012 13:48, Paulo Soares schreef:
> I suspect that it's not "producer" but rather "trapped" that is a name
> and correctly so. It may be an iText bug, I'll check it out tonight.
It's fixed in the SVN repository. The fix will be in iText 5.3.1 
(scheduled for August or September).

Date:     2012-06-25 11:58:18 +0000 (Mon, 25 Jun 2012)
Log Message:
-----------
XmpWriter shouldn't assume that all info dictionary keys have a string value.

Modified Paths:
--------------
     trunk/itext/src/main/java/com/itextpdf/text/xml/xmp/XmpWriter.java

Modified: trunk/itext/src/main/java/com/itextpdf/text/xml/xmp/XmpWriter.java
===================================================================
--- trunk/itext/src/main/java/com/itextpdf/text/xml/xmp/XmpWriter.java  
2012-06-25 06:47:30 UTC (rev 5218)
+++ trunk/itext/src/main/java/com/itextpdf/text/xml/xmp/XmpWriter.java  
2012-06-25 11:58:18 UTC (rev 5219)
@@ -206,6 +206,8 @@
                        obj = info.get(key);
                        if (obj == null)
                                continue;
+                       if (!obj.isString())
+                               continue;
                        value = ((PdfString)obj).toUnicodeString();
                        if (PdfName.TITLE.equals(key)) {
                                dc.addTitle(value);



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Reply via email to