Hi,
   I am trying to find out how to add a before starting of a paragraph and 
after the paragraph. Like hr tag. At present, I am using generic tag behavior 
of chunk and using following code

cb.setLineWidth(1.0f);   // Make a bit thicker than 1.0 default 
                cb.setGrayStroke(0.80f); // 1 = black, 0 = white 
                float x = rect.getLeft(); 
                float y = rect.getTop() - 20; 
                cb.moveTo(x,y); 
                cb.lineTo(x + 72f*5, y); 
                cb.stroke(); 

But I cannot add a generic tag to a paragraph. Though I could achieve it by 
adding a blank chunk after and before of a paragraph and implementing a line in 
eventhandler. I am trying to know , is there any easier method for this?

- RB


      

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to