The metadata can be compressed, the problem is that the metadata is not a valid 
xml document (or at least it wasn't in the pdf I loooked at). iText should 
ignore the error and carry on but it currently doesn't. The problem starts at 
FOP in any case.

Paulo

________________________________________
From: 1T3XT info [EMAIL PROTECTED]
Sent: Wednesday, November 05, 2008 2:08 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] iText 2.1.3: Invalid byte 1 of 1-byte UTF-8 
sequence Exception while processing PDF from Apache FOP 0.95

Stepan RYBAR wrote:
> Hello,
>
> thank You answer. But after some tests I guess, that this is not caused by 
> missing metadata.

Think again.

> Even if there are no metadata in "source.fo"

Look at your PDF document.
In the root dictionary, there's a reference to XMP data.
/Metadata 7 0 R
If we have a look at object 5, we see:
7 0 obj
<<
   /Type /Metadata
   /Subtype /XML
   /Length 12 0 R
   /Filter /FlateDecode
 >>
stream
xoe?QN~jÂ0?}?ü++?×?I??3¤.a){q??÷\"??oem?#"?Ú?öIu^...?? 
W+OE=?îÍ9'ç"#?u.Ë=X´...?]Ä?óý?#­bü?Íé1/4šÁNß7?VÍA~Z6{9Qxšô{ýž¨y}¨?`s?
?žu`2ÍÂ~ÂQ?]Y]?¨Ýómy^(2)1?-^^(1)}'f?0G?'l8?¤s?X?T'
&^(1)s?wEUR^(2)Ç?o`?D++"E`ë?Ë(c)HÇü/yÜ/[EMAIL 
PROTECTED]'^(1)?ôvA`?EURFk6âa~?ÎFW"qJ?é0y"é§$W^?B+x 
a~?3/4äî?ÁO~ëE`U`s??!gÍ??.}??...kU^?Z?

Oops... What's this?
This is a compressed XMP stream.
That's not allowed in PDF!

Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to