Hi,

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

medium output (1020 pages), single:
w/ embedding: 4 sec
w/o embedding: 3 sec
split into 1020 separate PDFs:
w/ embedding: 73 sec
w/o embedding: 5 sec

large output (11590 pages), single:
w/ embedding: 35 sec
w/o embedding: 33 sec
split into 11590 PDFs:
w/ embedding: 937 sec (= 12pps)
w/o embedding: 98 sec

This means that 80 to 90% of the time required to create a
single-paged PDF is used for embedding fonts! As a result, PDF is the
slowest output format in our product.
As a comparison: our splitted PCL output with embedded fonts takes 149
seconds to generate the same 11590 pages (= 77 pps).

Now my obvious question is why does iText take so much time embedding
fonts? and is there a way to speed things up?


Regards,
Bert Vingerhoets


-------------------------------------------------------
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

Reply via email to