Re: [iText-questions] FW: OutOfMemory exception onContentByte.LineTo

2006-12-29 Thread Alan
Thanks for the offer Paulo, But there is just way too much data and the code runs as an extension to another (expensive) proprietary application. I'll keep looking... Cheers AlanK -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paulo Soares Sent: Saturd

Re: [iText-questions] FW: OutOfMemory exception on ContentByte.LineTo

2006-12-29 Thread Paulo Soares
There's no reason to happen. If you can prepare a self contained example maybe we can find the cause. Paulo - Original Message - From: "Alan" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Friday, December 29, 2006 11:56 PM Subject: [iText-questions] FW: OutO

[iText-questions] FW: OutOfMemory exception on ContentByte.LineTo

2006-12-29 Thread Alan
Happy New Year (to all those on the list who will be celebrating one) I have a problem with path construction that is driving me nuts. My application takes geometry structures from a GIS and recreates them as pdf path statements. I have successfully created documents with over 250,000 in

Re: [iText-questions] ByteArrayOutputStream

2006-12-29 Thread robert engels
You are best to supply PdfWriter with the Response.OutputStream anyway, otherwise you need to buffer the entire PDF in memory. Why do you want to do this? On Dec 29, 2006, at 5:40 PM, Daniel Essin wrote: > It's not different English, it's just a snapshot into the evolving > state > of my con

Re: [iText-questions] ByteArrayOutputStream

2006-12-29 Thread Daniel Essin
It's not different English, it's just a snapshot into the evolving state of my confusion. My original post was confused because I was confused. I was reading a hex dump of the stream buffer and I did 2 things that were both wrong: - I misinterpreted the first character in the buffer as a 7 inste

Re: [iText-questions] ByteArrayOutputStream

2006-12-29 Thread robert engels
We must be using different english... On Dec 29, 2006, at 5:14 PM, Daniel Essin wrote: OK let me start over again. I was reading the dump incorrectly and the first byte is a % - Take Surveys. Earn Cash. Influence the Futu

Re: [iText-questions] ByteArrayOutputStream

2006-12-29 Thread Daniel Essin
It doesn't say the first byte is %, It says the file does not start with %PDF- The buffer of the MemoryStream has a %PDF- as its first 5 characters but none of the buffer is being sent to Response.OutputStream. What I don't understand is why not. Thanks, Dan robert engels wrote: > How can it be

Re: [iText-questions] ByteArrayOutputStream

2006-12-29 Thread robert engels
How can it be 0 length if the first byte is a % ? On Dec 29, 2006, at 3:53 PM, Daniel Essin wrote: > The pdf is a 0 length file. There's probably no point in attaching it. > > Thanks. What next? > Dan > > robert engels wrote: >> Why don't you attach the pdf file? >> >> On Dec 28, 2006, at 6:21 PM

Re: [iText-questions] ByteArrayOutputStream

2006-12-29 Thread Daniel Essin
The pdf is a 0 length file. There's probably no point in attaching it. Thanks. What next? Dan robert engels wrote: > Why don't you attach the pdf file? > > On Dec 28, 2006, at 6:21 PM, Daniel Essin wrote: > >> >> Daniel Essin wrote: >> OK let me start over again. I was reading the dump incorrec

Re: [iText-questions] RtfCell or Cell?

2006-12-29 Thread Mark Hall
On Friday 29 December 2006 11:07, GAMBELLI Raffaele wrote: > It is true that the main purpose of Itext is with PDF and so, RTF comes > always after like a dog'tail which follows the head, I believe that itext > should be a dog with two heads, but it is only my personal opinion. The differences betw

Re: [iText-questions] RtfCell or Cell?

2006-12-29 Thread Mark Hall
On Thursday 28 December 2006 17:17, GAMBELLI Raffaele wrote: > Hi all! > > To produce my rtf, I'm using the same code that I used for table generation > in pdf. > > Besides the unsupported itext features listed here --> > http://itextdocs.lowagie.com/tutorial/rtf/index.html# > > I noticed that also

Re: [iText-questions] Rtf Data Cache problem

2006-12-29 Thread Mark Hall
On Thursday 28 December 2006 23:34, Aitor Tomas wrote: > The documents are generated from fields that I get from DB. Each field > represents one table of several rows. > With 1250 tables I get a document of 25M without problem. > With 2500 tables I get the OutOfMemory error. > > What's the problem?

Re: [iText-questions] Loading iText to an IBM iSeries

2006-12-29 Thread Mike Buchanan
Thanks Aiken, I checked the version in QSH (java -version) and it came up 1.3.1. I was hesitant to change the version globally on the whole system so I simply copied the SystemDefault.properties file from /QIBM/UserData/Java400 to my user directory under the /home directory. I then added a ne

Re: [iText-questions] Header or Footer only in the last page

2006-12-29 Thread Mark Hall
On Friday 29 December 2006 13:55, GAMBELLI Raffaele wrote: > In the next release will it be possible insert another constant to manage > this request? No. The reason being that the RTF format does not support this. If you know where the last page starts you can use a Chapter for that and set a he

[iText-questions] Header or Footer only in the last page

2006-12-29 Thread GAMBELLI Raffaele
Hi all, I need to provide, in RTF generation, the capability of putting header and/or footer ONLY IN THE LAST PAGE but as I seen in the documentation, now this capability is provided for: * com.lowagie.text.rtf.headerfooter.RtfHeaderFooter.DISPLAY_FIRST_PAGE * com.lowagie.text.rtf.he

Re: [iText-questions] Hide note/comment icon

2006-12-29 Thread selvi
still doesn't work .is there any other way to fullfill the requirment Paulo Soares consiste.pt> writes: > > You should use annot.setPage(i). If it still doesn't work it's possible that > Acrobat is creating the icon if the appearance is empty. --

Re: [iText-questions] RtfCell or Cell?

2006-12-29 Thread GAMBELLI Raffaele
Ok, I resolved with: image.setAlignment(Image.MIDDLE) But with PDF generation, aligning an Image inside a Cell of a Table doesn't require the previous line of code... I've seen many undocumented differences between PDF generation and RTF generation. It is true that the main purpose of Itext is

Re: [iText-questions] RtfCell or Cell?

2006-12-29 Thread GAMBELLI Raffaele
Hi, thank you for the answer but it doesn't work Besides, why PDF with Element.ALIGN_CENTER should work and RTF no? I'm using Microsoft Word 2000 to view the output, could it be this the cause? However, is there someone with Office XP who could try the image alignment inside a table in a

Re: [iText-questions] Loading iText to an IBM iSeries

2006-12-29 Thread Bruno Lowagie
Aiken Sam wrote: > AFAIK, version 47 means jdk 1.3.x. Another solution would be to compile iText with the JDK 1.3. There are instructions on how to do this in the FAQ: http://itext.ugent.be/library/question.php?id=19 br, Bruno -