Re: [iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Bruno Lowagie
Baars, Peter wrote: Hello, First of all I want to complement you on the great library you guys created. I really appreciate it! I would like to report a bug when trying to merge a large number of PDF documents. I created a simple testcase and added the code to this mail. I don't understan

Re: [iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Mark Storer
Oops. Rectangle.rotate doesn't quite work the way I thought it did. Here's a fix: for( int i = reader.getPageRotation(x); i > 0; i-= 90) { newPageRect = newPageRect.rotate(); } On Wed, Apr 9, 2008 at 10:18 AM, Mark Storer <[EMAIL PROTECTED]> wrote: > PdfContentByte cb = writer.getDir

Re: [iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Mark Storer
PdfContentByte cb = writer.getDirectContent(); //IIRC, the directContent is from the current page, so you'll be drawing all your // importedPages onto the first page. for (InputStream input : inputStreams) { PdfReader reader = new PdfReader(input); for (int

[iText-questions] Bug while merging multiple PDF documents

2008-04-09 Thread Baars, Peter
Hello, First of all I want to complement you on the great library you guys created. I really appreciate it! I would like to report a bug when trying to merge a large number of PDF documents. I created a simple testcase and added the code to this mail. When we merge more than 50 - 55 PDF's into on