I need to modify how the Romeo & Juliet example works so that the
parser.parse(a,b) works differentlly.
Specifically, I would like to be able to pass a memory-only JDOM tree as the
first parameter instead of a disk-based XML file. I can write the output to
a ByteArrayOutputStream with no probl
as been left as is, since all inner classes and
methods are needed.
As for the population, its done each time the document.add() command is
called.
You should buy the Book, if you don't have it. I think it's a real asset.
P.S: By passing the baos to the PdfWriter you automaticaly create
Thanks Iliadis.
Can you tell me the point where the Baos actually gets populated?
I'm not sure what point in the R&J code acutally runs iText. It's not
clearly commented where this happens.
I have all the Servlet code working and ready to go so that part is OK.
I've modifed the R&J code some
ne step?
Date: Mon, 21 May 2007 10:08:28 +0200
Jim Hurricane wrote:
> Sorry, I guess my question wasn't clear...
>
> I'm trying to see if there's a simple change that can be made to the
> Romeo & Juliet Example that will let you output to a baos instead of to
> a
class which contains a createPdf method with ByteArrayOutputStream as
return type, where you create the final pdf as a baos instead of a physical
file.
Look also at the following link. It might give you some help.
http://www.theserverside.com/discussions/thread.tss?thread_id=37964
2007/5/18, Jim H
I just joined this list yesterday and am not sure my posting made it online.
I was asking if the basic Romeo & Juliet code example could be modified so
that it writes to a ByteArrayOutputStream directly or if it would be best to
first write the PDF and then read the PDF into a BAOS and return t
Hello,
I'm trying to modify the basic Romeo & Juliet files to return a
ByteArrayOutputStream so that the PDF can be displayed in the browser
directly. My sample PDF & TagMap files work fine if I save the PDF to a
file.
However, if I change the code below from the Romeo & Juliet example, I ge