Re: [iText-questions] Guidance Requested - Generating multipage output with header/footer and pg 1 layout

2010-04-28 Thread KSXD 32
Hello, Klas Lindbäck wrote: > I use page events and the decorator pattern for templates and > page numbering. I use template pdf:s for templates. A template > pdf contains one or two pages with the template (depending on > if I have the same or different > [snip] > Nice. I have also thought ab

Re: [iText-questions] performance question

2010-04-21 Thread KSXD 32
Hello, Just a small interesting follow up. For running the workload I posted before iText allocates a total of 18'637'142 StringBuffer instances. It is also needed a total of 4000 com.itextpdf.text.pdf.PRTokeniser instances one per com.itextpdf.text.pdf.PdfReader which is fine 2x2000: 2x (appe

Re: [iText-questions] performance question

2010-04-21 Thread KSXD 32
Hello Mike, > Mike Marchywka [mailto:marchy...@hotmail.com] wrote: > ... snip ... > that's fine. If you want someone here to figure out why itext > is slower, the pointing to a hogging method would help. > I ran the same iText workload as described before, this time connected to a profiler and

Re: [iText-questions] performance question

2010-04-21 Thread KSXD 32
Hello Mark, Mark Storer [msto...@autonomy.com] wrote: >Is this other library flattening the form as well? That can get >pricey, computation-wise. Is it appending its changes to the >existing PDF, or rewriting everything? Are both Java libraries? > Yes, the alternative library is pure Java and d

Re: [iText-questions] performance question

2010-04-20 Thread KSXD 32
Hello Paulo, I am perfectly aware of the benefits of iText, that's why I proposed it for our project in the first place but it can be hard to convince the team lead and colleagues to switch to a framework when it comes at a performance toll of 30% overhead for the use-case at hand. I didn't m

[iText-questions] performance question

2010-04-20 Thread KSXD 32
Hello, For a specific Letter generation use-case I prepared a test of statistical significance using a paired t-test for comparing the performance [1] of iText vs a commercial PDF framework. The experiment shows that for our relevant use-case iText underperforms by 30% with 95% confidence. I d

Re: [iText-questions] corrupt PDF generated

2010-04-06 Thread KSXD 32
Hello, I just wanted to acknowledge that I have found the root of this issue and fixed it. However, I would not be able to tell for sure if this effect is intended. The actual dimensions for a TextField within a PdfPTable would be dictated by two methods 1) the PdfPTable column widths 2) the d

[iText-questions] nested PdfPTable and vertical alignment

2010-03-29 Thread KSXD 32
Hello, In order to support multi-line rows (depending on the size of the default text) I use the commended solution of nested tables i.e. // create main table PdfPTable table = new PdfPTable(...); ... // create nested table PdfPTable nested = new PdfPTable(...); // create cell within nested tabl

[iText-questions] TextField in PdfPCell inside a PdfPTable

2010-03-24 Thread KSXD 32
Hello, I am creating a PdfPTable that has two columns only. The column on the left is simply a label i.e. read-only text. The right column is a TextField that is editable but populated with default text. The code for achieving this in included below. The behavior of the TextField inside the Pd

Re: [iText-questions] avoid create temp.pdf file

2010-03-24 Thread KSXD 32
Sent: Wednesday, March 24, 2010 11:39 AM To: Post all your questions about iText here Subject: Re: [iText-questions] avoid create temp.pdf file Azùa Giovanni (KSXD 32) wrote: > Hello, > > Is there any way to avoid creating a temp.pdf file for implementing the > use-case below? B

[iText-questions] avoid create temp.pdf file

2010-03-24 Thread KSXD 32
Hello, Is there any way to avoid creating a temp.pdf file for implementing the use-case below? Basically I need to create a letter.pdf document by loading and combining many small "template parts" the template parts may need (as in the case depicted below) to be populated and flattened first.