Hello!

Checking the example at http://www.lowagie.com/iText/examples/Chap0708.java
But 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
-------------------------------------------------------------------------
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

Reply via email to