You may increase the speed if you are filling the same form repeatedely with
AcroFields.setFieldCache() and the copying constructor of PdfReader, see
http://1t3xt.info/examples/browse/?page=example&id=249.
Paulo
________________________________
From: Azùa Giovanni (KSXD 32) [[email protected]]
Sent: Tuesday, April 20, 2010 2:54 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] performance question
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 mean to start a flame but was actually fishing for rewrite
alternatives to improve the performance of our use-case ...
Best regards,
Giovanni
==============================================================================
Please access the attached hyperlink for an important electronic communications
disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
<http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html>
==============================================================================
________________________________
From: Paulo Soares [mailto:[email protected]]
Sent: Tuesday, April 20, 2010 2:48 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] performance question
Hmm, there are lies, damn lies and statistics. While I don't dispute the 30%
let's see the probable causes for this:
- iText tries to do things correctly avoiding to cut corners that will come and
bite your later. Metadata writing, appearance generation and so on.
- iText is a generic PDF library. It reads, writes and modifies PDFs. Any
library designed with a narrower purpose can optimize the interested areas to
perform better.
- iText comes with source and can be extended, modified, altered. This implies
that a sensible and probably heavier structure must be in place to allow that.
If you have a closed source library with just a single purpose things can be
done faster as that's all it's going to do.
- com.itextpdf.text.pdf.PdfStamperImpl.close() is where everything is written
to file, if you avoid calling this nothing will come out.
- There are some speed and memory improvements in the pipeline but I don't know
how much % improvement will result or in what areas.
Paulo
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/