Java Mailing List Archive

http://www.junlu.com/

Home » Post all your questions about iText here »

[iText-questions] Background color while working with HTMLWorker

Alla Bakash

2012-01-29


Author LoginPost Reply
Hi
Some code changes(less than 20 lines in all the three files included) have been done to let the HTMLWorker work with the background color implementation when added as part of the css style attribute. The following html snippet was showing up with the background in the pdf. The code included will consider the background color and display the html chunk with the background color added in the PDF. Text with green background 
<span style='background-color:green'>Text with green background</span>
Thanking you
Shaik Allabakash.

Attachment: iTextChanges.zip (zipped)
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
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
©2008 junlu.com - Jax Systems, LLC, U.S.A.