Hi,

 

I have a problem with i-textSharp and i do not know how to solve it.

 

The scenario is that I have a html text saved in my database. And I have to
make a pdf with that text. The text can have <div>, <img>, <p> , <ul>, <li>
and other html elements.

 

I have to render the pdf in two columns as if it were a newsletter.

 

And here are my problems. If I ignore the two columns requisite, I have no
problem, it shows me the images and the <ul><li> elements perfectly, but
when I try to put the two columns to work I have problems rendering that
elements.

 

I have tried two possible solutions. The firs of then is to put a table with
two columns, and with this solution, I see the images and all the elements,
but. it's not in a newspaper form, because if the pdf has more than 1 page,
then the left column of the first page, continues in the left column of the
second page, and I want it to continue in the right column of the first
page.

 

In the second one, I used ColumnText to create the two columns, but when I
have to put the elements I don't know how to put the elements in the
ColumnText, if I add all the string in a paragraph, it doesn't separate the
text in two columns, and if I try something like separating the elements in
IElements, then it doesn't render the <img> and <ul> and <il>.

 

Does somebody know what I'm doing bad, or an example of what I want to
accomplish?

 

Thanks.

 

Albert

 

<<image001.png>>

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to