I'm not sure what is wrong, but it is possible and encouraged that you should extend the iText elements when necessary.
-Matt --- [EMAIL PROTECTED] wrote: > > > > > Hello, > > I'm in the situation with a project where I'd like > to extend some of the > iText classes (such as Chunk, Paragraph, and > Chapter) in order to add some > simple properties which I will use for sorting. > After the sorting I will > add my objects to a Document. > > I've just extended the Chunk class for testing; I > haven't even added any of > my own properties yet. But whenever I try to add my > extension of Chunk to a > Paragraph object I get a null pointer exception, > even when I cast the > object as an iText Chunk. > > Is it possible to extend the iText classes and add > them to Documents > (without tinkering around with other classes)? Has > anyone done this? > > Thanks in advance for any help, > > Andrew Luxner > > > > ------------------------------------------------------- > This SF.net email is sponsored by: eBay > Get office equipment for less on eBay! > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: eBay Get office equipment for less on eBay! http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
