Thanks for your reply!
Is it possible that the ServletOutputStream "shaves" the upper bit from
every byte?
I have a method which returns a ByteArrayOutputStream containing the pdf
data.
If I delegate this OutputStream to a FileOutputStream everything is ok but
if I use
the ServletOutputStream there is no content in the pdf.
If the ServletOutputStream is responsible for this do you have a idea how I
can
prevent it from doing this?
Thank you in advance!
Best regards.
Sebastian Furth
2010/2/22 1T3XT info <[email protected]>
> Sebastian Furth wrote:
> > Something happens during the request because it returns a pdf in the
> > dimension set in the code - but there is absolutely no content (blank).
>
> Sounds like the "blank page" problem described in the book (1st and 2nd
> edition). This happens if you "shave" the upper bit from every byte. The
> PDF structure is preserved, and as a result a viewer can show you all
> the pages of the PDF, the bookmarks, etc... But all binary data, for
> instance the page content stream, is made corrupt (of course: you've
> thrown away 1/8 of the information).
>
> If that's what's happening in your case, you have a configuration error
> somewhere.
>
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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/
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
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/