[iText-questions] Using the SAXParser in R&J example with a memory (JDOM) input object?

2007-05-23 Thread Jim Hurricane
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

Re: [iText-questions] BAOS in one step?

2007-05-21 Thread Jim Hurricane
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

Re: [iText-questions] BAOS in one step?

2007-05-21 Thread Jim Hurricane
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

Re: [iText-questions] BAOS in one step?

2007-05-21 Thread Jim Hurricane
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

Re: [iText-questions] BAOS in one step?

2007-05-18 Thread Jim Hurricane
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

[iText-questions] BAOS in one step?

2007-05-18 Thread Jim Hurricane
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

[iText-questions] Using the Romeo & Juliet XML files to return ByteArrayOutputStream

2007-05-17 Thread Jim Hurricane
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