[iText-questions] Concatenate pdf files with new content

2006-04-17 Thread David Ge
> Hi: > > I need to create a pdf file, with layout like [header | table of data > (read from database) | footer]. The number of the rows of the table is > not fixed, can across multiple pages. > Ideally, like to import a template pdf file of layout [ header | xx | > footer], then fill in/replace t

[iText-questions] Re: Widow/Orphan contol on chapters and sections

2006-04-17 Thread Peter Rait
Peter Rait schrieb: Hi, How can I define that chapter and section items are held together on one page? For example Chapter Section --- page break Subsection Textline1 Textline2 or Chapter Section Subsection --- page break Textline1 Textline2 should be converted to --- p

RE: [iText-questions] Managing Memory During Concatenation

2006-04-17 Thread Mark Spitzer
Paulo, Thanks for the quick response and clarification.  I will change it back to PdfCopy to ensure that the input data is cleaned up as quickly as possible.  I believe I have only the one reference (local var) to PdfReader so it could just be slowness by the VM in responding with a GC sweep. Re

Re: [iText-questions] Managing Memory During Concatenation

2006-04-17 Thread Paulo Soares
There's no need to flush, everything is written to the output as soon as possible and never later than page by page. Paulo - Original Message - From: "Mark Spitzer" <[EMAIL PROTECTED]> To: "Paulo Soares" <[EMAIL PROTECTED]> Cc: Sent: Monday, April 17, 2006 7:09 PM Subject: RE: [iText

[iText-questions] HeaderFooter foolishness

2006-04-17 Thread Ken
HeaderFooter seems just the ticket for printing a line of text on every page, but it's not cooperating. I set the same line of text as header and footer. Sometimes I get both, sometimes one, sometimes neither. Shouldn't they always print? Talk is cheap. Use Yahoo! Messenger to make PC-to-Pho

RE: [iText-questions] Managing Memory During Concatenation

2006-04-17 Thread Paulo Soares
PdfCopy frees the PdfReader as they are written to output. PdfCopyFields keeps all PdfReader in memory until close. If you are getting similar memory uses you are keeping a reference to PdfReader somewhere.   Paulo From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

RE: [iText-questions] Keep the real size of an image when it is inserted in a PDF Document.

2006-04-17 Thread Paulo Soares
iText doesn't print. Look for problems in the printer, printer driver or the box "fit to margins" checked in the print dialog. Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Jorge Albalate Lopez > Sent: Monday, April 17, 2006 3:21 PM > T

[iText-questions] itext on developerWorks

2006-04-17 Thread Antoine
Hi, In case you hadn't seen this already... http://www-128.ibm.com/developerworks/opensource/library/os-javapdf/?ca=dnw-703 Cheers Antoine -- This is where I should put some witty comment. --- This SF.Net email is sponsored by xPML, a groundbre

[iText-questions] Managing Memory During Concatenation

2006-04-17 Thread Mark Spitzer
I'm having some difficulty dealing with memory constraints while concatenating a large number of files.  The heap on the VM spikes dramatically and I'm trying to determine what I can to do to minimize the impact.  I could have up to a few thousand pages from a few hundred documents.  I've been usi

[iText-questions] Keep the real size of an image when it is inserted in a PDF Document.

2006-04-17 Thread Jorge Albalate Lopez
Hi, I have a problem when i try to insert an image in a PDF Document. The image has the next dimensions: 945 x 1417 px or 8 x 12 cm or 3,15 x 4,723 inches with 300 px/inch I have the next code: Image imagenMarca = Image.getInstance("C:/temp/marca.jpg"); imagenMarca.scalePercent(24,24); imagenMa

RE: [iText-questions] Far cry for help with JPEG in PDF

2006-04-17 Thread Paulo Soares
You shouldn't be messing with PRStream. Create a new PdfStream with the right filters to replace the old PRStream. Don't forget to kill the old PRStream with PdfReader.killIndirect(). Paulo > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Pette

Re: [iText-questions] right mouse button

2006-04-17 Thread Leonard Rosenthol
At 07:04 AM 4/17/2006, Andres Javier Muñoyerro Pindado wrote: I need that the right mouse button doesn't work. How I can to insert a

[iText-questions] right mouse button

2006-04-17 Thread Andres Javier Muñoyerro Pindado
Hi !!   I need that the right mouse button doesn't work. How I can to insert a 

Re: [iText-questions] Far cry for help with JPEG in PDF

2006-04-17 Thread Petter Nyström
It seems my problem is indeed with that setData() uses some sort of compression filter on the data, which is not desirable when dealing with JPEG. I added a simple method setDataRaw() in com/lowagie/text/pdf/PRStream.java like this: public void setDataRaw (byte[] data) { this.o