Thank you for your suggestions. Full embedding of fonts slows the process down even more: I get 7.5 pps (was 12 pps for subset embedding).
I am indeed writing each page separately as I go, but the overhead of creating a file and performing initializing stuff is minimal as this also happens in splitted output with font embedding switched off (this gives me 118 pps). Simply turning off font embedding gives an 80 to 90% performance boost. I will see if creating a single document and splitting it afterwards is feasible. However, I don't understand your saying that this would lead to smaller documents. Surely each document contains the same information as if it were generated separately? I would still like more information as to why iText takes so much time for embedding fonts and whether this can be sped up. Regards, Bert Vingerhoets On 4/18/06, Leonard Rosenthol <[EMAIL PROTECTED]> wrote: > At 07:42 AM 4/18/2006, Bert Vingerhoets wrote: > >Our company uses iText for generating PDF documents and we have > >noticed that, when embedding fonts, the overhead for creating a new > >document is very large. Take a look at the following times (obtained > >with test documents containing six different fonts): > > > >small output (139 pages) in a single document: > >w/ embedding: 1 sec > >w/o embedding: <1 sec > >when split into 139 separate PDFs: > >w/ embedding (each file is between 40 and 45K in size): 11 sec > >w/o embedding (each file is 4K in size): 2 sec > > Does this mean that you are writing each page separately AS > YOU GO - or that you are creating a single document and then > splitting it? IF the former, I would recommend the latter since, as > you can from your own numbers, that would be a MUCH faster operation > (and would also lead to smaller output documents). > > > Also, are you doing FULL embedding or SUBSET > embedding? Full embed of a font is pretty quick - but subsetting is > a potentially complex process and is probably one element slowing you down. > > > Leonard > > --------------------------------------------------------------------------- > Leonard Rosenthol <mailto:[EMAIL PROTECTED]> > Chief Technical Officer <http://www.pdfsages.com> > PDF Sages, Inc. 215-938-7080 (voice) > 215-938-0880 (fax) > > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
