The only limitation is that at some time you must have enough memory for the 
image but there are no other restrictions. JPG images are always imported as-is 
so it's Acrobat that doesn't like the image.

Paulo

> -----Original Message-----
> From: Larry Reeder [mailto:lnree...@gmail.com] 
> Sent: Tuesday, September 15, 2009 3:39 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Large JPG file corrupted when 
> loaded into PDF
> 
> I'm loading a very large JPG (173 MB, with geometry 
> 28000x28000) into a PDF using the iText SDK. iText creates 
> the PDF without error, but, based on the size of the 
> resulting PDF, only about 134 MB of the JPG is loaded.   As a 
> result, Adobe Reader loads most of my PDF, but complains that 
> there is "Insufficient data for an image" after the image is 
> about 75% loaded.
> 
> I think the issue is related to the file size, not the 
> geometry of the JPG.   When I use a lower quality JPG with a 
> geometry of 28000x28000 and a size of 129 MB, iText generates 
> the PDF, and Adobe Reader loads it without complaint.
> 
> Note that I am setting the mediabox to 14000x14000 and the 
> image scale to 50% to avoid making the PDF bigger than 200x200 inches.
> 
> Is there some known limit to the image file size in iText?  
> Any pointers about where I can look for problems?
> 
> Thanks..........          Larry
> 
> 

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.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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