On Mar 25, 2010, at 10:41 AM, 1T3XT info wrote:
> Fred Cohen wrote:
>> In case it didn't get to the list...
>
> I didn't see it on the list.
>
> iText adds images only once if you reuse the Image object.
> If you don't reuse the image object, but create new Image objects
> over and over again, then you end up with a huge PDF.
I was aware of this -0 having looked at the code.
> This is documented in the book.
I also bought the book (PDF format). Nicely informative - but not the
issue here.
> In your case, you're working with HTMLWorker, but you aren't
> using an ImageProvider. Please read section 9.4.1 of the second
> edition of "iText in Action" to find out more about ImageProvider.
This is about fonts, not about ImageProvider - which I cannot find in
the book as provided. OF course I don;t know what edition I got - but
I bought it this morning from your identified provider. In the one I
have, 9.4.1. reads:
... The FontFactory class has a series of static getFont() methods
that allow you to
replace the two lines used in the previous chapter with one line. For
instance:
BaseFont bf = BaseFont.createFont("c:/windows/fonts/arial.ttf",
BaseFont.CP1252, BaseFont.EMBEDDED);
Font font = new Font(bf, 14);
can be replaced by the following single line:
Font font = FontFactory.getFont("c:/windows/fonts/arial.ttf",
BaseFont.CP1252, BaseFont.EMBEDDED, 14);
> Please don't reply to this message. Further questions to the
> 1t3xt.info address will not be answered. You should use the
> official address: [email protected]
> (subscription required).
I subscribed - but am not sure if I am on it - since the list
apparently didn't get my message from this morning.
FC
> --
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
>
- This communication is confidential to the parties it is intended to
serve -
Fred Cohen & Associates tel/fax: 925-454-0171
http://all.net/ 572 Leona Drive Livermore, CA 94550
Join http://groups.google.com/group/fca-announce for our mailing list
------------------------------------------------------------------------------
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/