Hi,

I'm creating pdf documents with only one image on it. I want to add halftone parameters to the pdf, so the image be printed with the halftone screen I want.
To do this, I created a PDFHalftone class:

public class PdfHalftone extends PdfDictionary {
public PdfHalftone() {
       super(HALFTONE);
       put(PdfName.HALFTONETYPE, new PdfNumber((int)1));
       put(PdfName.FREQUENCY,  new PdfNumber((int)200));
       put(PdfName.ANGLE,  new PdfNumber((int)0));
       put(PdfName.SPOTFUNCTION, PdfName.SIMPLEDOT);
   }
}

Furthermore, I added this line to the PDFDictionary class file:

   /** This is a possible type of dictionary */
   public static final PdfName HALFTONE = PdfName.HALFTONE;

and these ones to the PDFName class:

public static final PdfName HALFTONE = new PdfName("Halftone");
public static final PdfName HALFTONETYPE = new PdfName("HalftoneType");
public static final PdfName SIMPLEDOT = new PdfName("SimpleDot");
public static final PdfName ANGLE = new PdfName("Angle");
public static final PdfName FREQUENCY = new PdfName("Frequency");

When I call to the PDFHalftone from my Java program: new com.lowagie.text.pdf.PdfHalftone();
I got the next error message:

Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: HHALFTONE
   at com.lowagie.text.pdf.PdfHalftone.<init>(Unknown Source)


Any idea?.

begin:vcard
fn;quoted-printable:Alberto Malvido Garc=C3=ADa
n;quoted-printable:Malvido Garc=C3=ADa;Alberto
org;quoted-printable:Universidad de Vigo;Teor=C3=ADa de la Se=C3=B1al y Comunicaciones
adr;dom:;;E.T.S.I. de Telecomunicacion. As Lagoas Marcosende.;Vigo;Pontevedra;36200
email;internet:[EMAIL PROTECTED]
tel;work:+34 986812672
tel;home:652844623
url:http://www.uvigo.es
version:2.1
end:vcard

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to