I removed the line
writer = writer.getInstance(document, bos);
That was not supposed to be there, it was left over from trying different
things to get pdf to the browser.
But with that said, I still get the same error and the following message
displayed on screen.
Instead of saying "it's bound to fail" do you have any real suggestions of
what is I need to change to accomplish this?
1T3XT info wrote:
>
> wmhfitz wrote:
>> This same code works fine in a standalone.
>
>> PdfStamper stamper = new PdfStamper(reader, bos);
>> writer = writer.getInstance(document, bos);
>
> What is bos? A ByteArrayOutputStream?
> Why are you writing to it from PdfStamper AND PdfWriter?
> This is bound to fail.
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> ------------------------------------------------------------------------------
> _______________________________________________
> 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
>
>
--
View this message in context:
http://www.nabble.com/The-document-has-no-pages.-tp21080269p21092018.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
_______________________________________________
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