Zenith wrote:
> Bruno Lowagie <bruno <at> lowagie.com> writes:
> 
>> I use class FieldPositioningEvents and chunks:
>>
>> FieldPositioningEvents fpe = new FieldPositioningEvents();
>> writer.setPageEvent(fpe);
>> Chunk academic_year = new Chunk("                  ");
>> academic_year.setGenericTag("academic_year");
>>
>> The academic_year chunk can be added to the Paragraph.
>> br,
>> Bruno
> 
> 
> I got a null pointer exception while using that code snippet of urs.

It's just a snippet, you are meant to elaborate.
This is the complete sample:
http://itext.ugent.be/itext-in-action/examples/chapter17/FoobarLearningAgreement.java
best regards,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to