I take it you're building 1.4 from the source yourself?

I had the same problem. My build environment did't recognise the .afm 
extension, so ignored those files.  I had to tell it to copy those files out to 
my output directory alongside the .class files.

I'd wager you're having exactly the same problem.

--Mark Storer
  Senior Software Engineer
  Cardiff Software

#include <disclaimer>
typedef std::Disclaimer<Cardiff> DisCard;



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Mahir
> Mahir
> Sent: Thursday, March 09, 2006 6:16 AM
> To: [email protected]
> Subject: [iText-questions] Error with com.lowagie.text.pdf.fonts
> 
> 
> Hi,
> 
> I get the following message when I run a class using iText 
> (iText 1.4). I'm 
> doing this in Lotus Notes.
> 
> LS2J Error: Threw 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)
> 
> But the Helvetica.afm file exists in the package 
> com.lowagie.text.pdf.fonts
> 
> What is wrong?
> 
> I use this example:
> 
> import java.io.*;
> import java.util.*;
> import com.lowagie.text.pdf.*;
> 
> public class SetupExample {
> 
>    public void processFields(){
>         try{
>             //Reads a PDF document named "f1040.pdf".
>             PdfReader reader = new PdfReader("f1040.pdf");
>             PdfStamper stamp = new PdfStamper(reader,
>                 new FileOutputStream("Altered1040.pdf"));
>             //rename the fields
>             AcroFields form = stamp.getAcroFields();
>             form.renameField("f1-4", "firstName");
>             form.renameField("f1-5", "lastName");
>             form.renameField("f1-11", "ssn1");
>             form.renameField("f1-12", "ssn2");
>             form.renameField("f1-13", "ssn3");
>             form.setField("f1-6", "spouse first name");
>                 String spouseLastName = form.getField("f1-7");
>             //Writes the result to a file named "Altered1040.pdf"
>             stamp.close();
> .....
> 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking 
> scripting language
> that extends applications into web and mobile media. Attend 
> the live webcast
> and join the prime developer group breaking into this new 
> coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&;
dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to