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&kid=110944&bid=241720&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to