[email protected] wrote:
> Hello ,
>
> I tried to embed the BaseFont "Helvetica" but Acrobat says that=20
> it isn't embedded.
This is explained in the documentation.
See chapter 11 of the second edition of "iText in Action".
> this is may Code based on itext 2.0.7:
> String text0 =3D "This is the quite popular built in font '" + =
> BaseFont.HELVETICA + "'.";
> Paragraph p =3D new Paragraph("THIS IS TEST", =
> FontFactory.getFont(BaseFont.HELVETICA, BaseFont.WINANSI, =
> BaseFont.EMBEDDED));
The parameter "embedded" is ignored in some cases.
For instance:
- the standard type 1 fonts such as Helvetica are never embedded,
- CJK fonts are never embedded,
- if encodiing Identity-H or -V is used, the font is always embedded,
no matter which value you pass for the "embedded" parameter.
> document.add(p);
> Thanks for your help.
If you want to embed Helvetica, you need to buy the .pfb file.
iText only ships with the (free) .afm file.
Or even better: search the web to find where you can buy a .ttf or .otf
file containing the Helvetica font program.
(Note that we don't sell fonts, you'll have to use Google to find where
you can buy Helvetica.)
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
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/