Hello!
Checking the example at
http://www.lowagie.com/iText/examples/Chap0708.javaBut having problems with the .setMarkupAttribute(MarkupTags.CLASS
, "small");
I am starting with the following line:
document.add(new Header(MarkupTags.HTML_VALUE_CSS , "myStyles.css"));
I try the following:
Cell invoiceOrganizationNumber = new Cell(
invoice.getOrganizationNumber() );
invoiceOrganizationNumber.setHorizontalAlignment(Cell.ALIGN_RIGHT);
invoiceOrganizationNumber.setMarkupAttribute(
MarkupTags.CLASS, "small");
table.addCell(invoiceOrganizationNumber,row,3);
but the cell:s setMarkupAttribute expects a String and not a Class.
Any suggestions on how to reach the .small property in my CSS-file '
myStyles.css'.
I also would like to set properties within the body such as leftmargin and so on, getting
them from my CSS-file ofcourse.
Best regards, Ink