The error is here in the afm:

FontBBox  -250 1171 749

This is supposed to have 4 numbers.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Laura Cobos
> Sent: Thursday, September 11, 2008 4:23 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem creating a computer moder font
>
> These are the files.
>
> Thanks
>
>
> 2008/9/11 Paulo Soares <[EMAIL PROTECTED]>
>
>
>       Post the afm.
>
>       Paulo
>
>
>       ----- Original Message -----
>       From: "Laura Cobos" <[EMAIL PROTECTED]>
>       To: <itext-questions@lists.sourceforge.net>
>       Sent: Thursday, September 11, 2008 10:18 AM
>       Subject: [iText-questions] Problem creating a computer
> moder font
>
>
>       I used the class from Mr. Bruno's book
> HelloWorldAbsolute (chapter 2) but
>       using a computer modern font, cmmi7.
>       I changed the BaseFont bf to BaseFont bf =
>
> BaseFont.createFont("C:/itext-core/itext/resources/cmmi7.afm","",
>       BaseFont.EMBEDDED); The problem is I have this Exception...
>
>       Exception in thread "main" java.util.NoSuchElementException
>          at java.util.StringTokenizer.nextToken(Unknown Source)
>          at com.lowagie.text.pdf.Type1Font.process(Unknown Source)
>          at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source)
>          at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
>          at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
>          at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
>          at Demo.HelloWorldAbsolute.main(HelloWorldAbsolute.java:52)
>
>       I have the afm and pfb file in the folder resources,
> and it works ok with
>       other cmmi like cmmi10 or cmmi8 in the same folder...
> but it seems
>       createFont can't create this font.
>
>       I don't know if this is because the files cmmi7.afm or
> cmmi7.pfb are
>       corrupted... anybody could tell what is going on ?
>
>       Thanks in advance


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.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to