The file is corrupt, it has a lot of garbage after M75003/25175/4065.pdf.

Paulo 

> -----Original Message-----
> From: Karol Bryd [mailto:[email protected]] 
> Sent: Thursday, June 04, 2009 3:14 PM
> To: Post all your questions about iText here
> Subject: [iText-questions] Problem with garbled bookmarks
> 
> Hello
> 
> I have a problem with bookmarks in one PDF document and I don't know 
> whether the PDF file is corrupted/incorrectly created or 
> maybe it is a 
> problem with iText.
> So here is a fragment of the PDF file (there is a similar fragment 
> attached, however encoded as binary):
> 
> 2862 0 obj<</D[1 0 R/FitV -6]/S/GoTo>>
> endobj
> 2864 0 obj<</D[1 0 R/FitV -6]/S/GoTo>>
> endobj
> 2865 0 obj<</Parent 2863 0 R/Title(4065 )/A 2866 0 R>>
> endobj
> 2866 0 obj<</D[0/FitV]/F(M75003/25175/4065.pdf . `]. .       4065  
> çw.»ëw4Đ. đ#Ě .!Ě             ĚZ. 1,çwF ..! đ ¸Z. F ..    ŕZ. 
> đ.čwF ..R 
> ..ć čwđ#Ě .       É.íwF ... Š.. Š. [. ś.íwF ... Š.4Đ. đ#Ě .!Ě   . ś[
> . . čwF ... Š.4Đ. F ..\f   °...@w. Ř&�...@w. G .. aE.P[. j,çwš.ó ..  
> .       Ř&·.p[. ő,çwĘ.˙˙š.ó ..  .       .   .[. .Pµ.Ę.˙˙š.ó đ#Ě 
> ‚Q´..K·.@   .    ]. .   xK·.Ś[.  ].      ]. ůvµ.Čuş.$\\. .   
> Čuş.ŕ\n·.    .
>    ]. Ô\n·./xµ.     ]. 5xµ.Ô\n·.$\\.  ].     [xµ..   $\\. 5   ř\\. 
> ď!´.$\\. `].     .   ó.  GoToR   Z\\. Îuş.    T\\. ó.  %*´.T\\. `]. . 
> )/S/GoToR/NewWindow true>>
> endobj
> 2861 0 obj<</Parent 2855 0 R/Title(4123 )/A 2867 0 R>>
> endobj
> 
> 
> It supposed to define a bookmark pointing to a M75003/25175/4065.pdf 
> file. This is obviously fragment of uncompressed PDF and 
> regardless of 
> that fact when opened in Acrobat Reader/FoxIt reader it opens 
> correctly 
> and the bookmark is also displayed correctly.
> 
> The XML returned by SimpleBookmark contains those extra 
> characters and 
> it causes problems in some other applications based on iText.
> 
> Any help is appreciated.
> 
> Best regards
> Karol Bryd
> 
> 

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.

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to