Hi,

I have upgraded to the latest JAR file which I downloaded from 
http://sourceforge.net/projects/itext/
I am aware of the fact that the afm file is in the fonts directory. I have seen 
this issue before using iText2.1.4.
The font file was present and yet I was getting this error. I know this is a 
java jar file, what I was trying to get at is
my code base is javascript and I am using this jar. Regardless, I have seen 
this issue posted multiple times with no clear resolution?
My question is why do all jar builds have this issue, if the jar was built 
correctly in the first place? What is the correct resolution
To this fix this problem?

Thanks,
Oscar Rangel
Management Systems Analyst
Enterprise Application Integration
Information Technology
The City of Calgary
Ph: (403)268-1612
ISC:Protected


-----Original Message-----
From: 1T3XT info [mailto:i...@1t3xt.info]
Sent: 2009 November 18 10:21 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Helvetica not found as resource -iText-2.1.4Jar

Rangel, Oscar wrote:
> I have updated to the latest JAR iText-2.1.7.jar and have lately
> noticed this issue once again in my JavaScript:

There are two errors in the above sentence:
1. you haven't upgraded to the latest iText-2.1.7.jar
    If you had, you could open it and you'd find
    the afm files in com/lowagie/text/pdf/fonts/
    See the attached screenshot: the jar is opened using 7-zip
    You have either created the jar yourself (the wrong way),
    or you have downloaded a jar from an unofficial site
    (please explain where you've found it).
2. There's no JavaScript involved. What you should below
    is a Java error. NOT a JavaScript error.

> Internal Script error: ExceptionConverter:
> com.lowagie.text.DocumentException: Helvetica not found as resource.
> (The *.afm files must exist as resources in the package
> com.lowagie.text.pdf.fonts)
>
> Does anyone know why this issue happens and what is the best way to fix it?

This is not an issue with the official iText.
It only happens when the files shown in the screenshot are missing from the jar.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

NOTICE -
This communication is intended ONLY for the use of the person or entity named 
above and may contain information that is confidential or legally privileged. 
If you are not the intended recipient named above or a person responsible for 
delivering messages or communications to the intended recipient, YOU ARE HEREBY 
NOTIFIED that any use, distribution, or copying of this communication or any of 
the information contained in it is strictly prohibited. If you have received 
this communication in error, please notify us immediately by telephone and then 
destroy or delete this communication, or return it to us by mail if requested 
by us. The City of Calgary thanks you for your attention and co-operation.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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
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/

Reply via email to