Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Paragraph object when creating PDF from XML

Sushil Vegad

2007-07-11

Replies:

Hello,

I am creating pdf form xml and I need to indent the paragraphs. How can I do this?

 

I tried the following and a few other attributes in the tagmap file that didn’t work

<tag name="paragraph" alias="div">

            <attribute name="indentationleft" value="20" />

</tag>

 

Alternatively, I used a PdfPageEventHelper, but I can’t figure out how to get the paragraph object in the onParagraph method.

 

I would like to use the approach of event helper if I can give me the relevant objects on the onXXXXX methods, as I would need to do much more manipulations than just indenting the para.

 

Any help is very much appreciated.

 

Thanks,

Sushil

 

-------------------------------------------------------------------------
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@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.