> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Norman Hendrich
> Sent: Thursday, June 05, 2008 4:42 PM
> To: [email protected]
> Subject: [iText-questions] BuiltinFonts14 embedding?
>
> Dear all,
>
>
> since some time, IEEE and ACM require that papers be submitted
> in PDF format, and that *all* fonts must be embedded...
>
> I use iText to generate PDFs from my Java graphics editor (jfig),
> and I would like to add the option to embed all fonts when requested.
> This makes the pdfs a bit bigger, but the graphics would be useable
> in pdflatex documents for IEEE/ACM/... without clumsy pdf->ps->pdf
> conversion (pdftops | ps2pdf14 -dPDFSETTINGS=/prepress ).
>
>
> Unfortunately, the following code in BaseFont.createFont() simply
> resets the "embedded" flag when it encounters one of the builtin
> fonts (or the CJK fonts):
>
>
> public static BaseFont createFont(String name, String
> encoding, boolean embedded, boolean cached, byte ttfAfm[],
> byte pfb[], boolean noThrow) throws DocumentException, IOException {
> ...
>
> boolean isBuiltinFonts14 = BuiltinFonts14.containsKey(name);
> boolean isCJKFont = isBuiltinFonts14 ? false :
> CJKFont.isCJKFont(nameBase, encoding);
> if (isBuiltinFonts14 || isCJKFont)
> --> embedded = false;
> else if (encoding.equals(IDENTITY_H) ||
> encoding.equals(IDENTITY_V))
> embedded = true;
> ...
>
>
> So, before I try to hack and recompile iText, I have three questions:
>
> 1) would it work to just delete the isBuiltinFonts14 test, and the
> builtin fonts would also be embedded automagically?
>
No. iText only has the font metrics.
> 2) If no, what extra steps should be taken to embed the base fonts?
Adobe will be glad to sell you the fonts but if you're embedding them
just use Arial or something else that is free like the fonts shipped
with ghostscript.
>
> 3) If yes, wouldn't this option be useful to other users as well?
> Perhaps another parameter like "boolean embedBuiltinFonts14"
>
See other answers.
> Best regards,
> Norman
>
> Please reply to my email-address, as I don't subscribe to the list.
You found the list to ask the question, I'm sure you'll also find it to
read the answer.
Paulo
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar