twinmar wrote:
> Hi Bruno,
> 
> Don't get me wrong - I'm not asking anyone to debug my code or write me new
> code - I just posted it in the hope that it might highlight an issue.

OK, now that I know in which line to look.

You declare a variable:

public Barcode39  ipdfbar39;

This line is equivalent to:

public Barcode39  ipdfbar39 = null;

NOWHERE in your code, I can find something like this:

ipdfbar39 = new Barcode39;

HOWEVER, you are doing something like this:
setBarcode(this.ipdfbar39, barcode);
this.ipdfbar39.setX(this.fminbarwidth);
this.ipdfbar39.setN(this.fbarmultiply);
this.ipdfbar39.setBaseline(this.fbaseline);
and so on...

ALL THESE LINES will throw NullPointerExceptions.
setBarcode(this.ipdfbar39, barcode);
is equivalent to:
setBarcode(null, barcode);

this.ipdfbar39.setX(this.fminbarwidth);
is equivalent to:
null.setX(this.fminbarwidth);
(That's totally wrong...)

Problems like this are off-topic on this list.
br,
Bruno

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
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