Well, my knowledge is Java - not HTML and CSS.
But I would like to achieve what was done in the example which I first mentioned:
Cell invoiceOrganizationNumber = new Cell( invoice.getOrganizationNumber() );
invoiceOrganizationNumber.setHorizontalAlignment(Cell.ALIGN_RIGHT);
invoiceOrganizationNumber.setMarkupAttribute(
MarkupTags.CLASS, "small");
table.addCell(invoiceOrganizationNumber,row,3);
This would help me out, using the CSS to be responsible for the colors and fonts.
I do not want to set colors and fonts in my java-code.
the above example, is that not possible today?
regards, i
table.addCell(invoiceOrganizationNumber,row,3);
This would help me out, using the CSS to be responsible for the colors and fonts.
I do not want to set colors and fonts in my java-code.
the above example, is that not possible today?
regards, i
2006/9/25, Bruno Lowagie (iText) <[EMAIL PROTECTED]>:
ing erl wrote:
> Hello,
>
> So today, one is not able to generate an HTML with a CSS.
I think we are not talking about the same subject.
If you declare a CSS, it is added to the header of the HTML.
From then on, you can use class names declared in the CSS.
Period.
You are talking about something else.
You say you declare the CSS, and you then want iText
to parse the CSS file. I assumed that you wanted to
parse this CSS to retrieve the style so that it can
be applied to an iText object such as Paragraph (DIV),
Phrase (SPAN), Anchor (A), etc...
I don't see a reason why you would need to parse
a CSS when you are creating HTML. (But maybe my
knowledge of HTML/CSS is too limited to understand
your question.)
> if I am looking at old-tutorials, where are the new ones ?
http://itextdocs.lowagie.com/tutorial/
http://itext.ugent.be/itext-in-action/ (only if you can log in)
Note that it is not a good idea to use iText if you only
want to create HTML; use iText for PDF or RTF creation.
HTML creation is just a bonus; not the core business of iText.
To avoid people thinking iText is the best product for HTML
creation, I removed most HTML examples from the tutorial.
br,
Bruno
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
