Pankaj Bhatnagar wrote:

Hi

I'm creating a library for generating PDF documents using iText version 1.3. My requirement is limited to only a few elements such as tables, images and text.

But the source of the content is XML.

The problem is that I need to position these elements at exact positions with an exact size. Something I achieve with the "positioning: absolute; left: 100; top: 100; width: 100; height: 100" style attributes in HTML. I create DIVs with style attributes similar to that given above and place the actual elements inside the DIVs. Is there anything equivalent to the above in iText ?

There is no XML handler in the iText distribution that allows you to add elements at absolute positions based on attributes or CSS-like styles. So you'll have to create your own Handler that deals with IMG and DIV tags and styles with display: inline, block, table, table-row or table-cell, as well as positioning values.
br,
Bruno


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to