ITextSharp SetListSymbol as an image

I know that SetListSymbol (from the ITextSharp library) expects a string as a parameter, but is it possible to use an image/icon somehow? If so, how?


Please take a look at the ListWithImageAsBullet example. It takes the image of a light bulb and uses it as if it were a bullet like this: list_with_image_bullet.pdf

Image image = Image.getInstance(IMG);
image.scaleAbsolute(12, 12);
List list = new List();
list.setListSymbol(new Chunk(Image.getInstance(image), 0, 0));
list.add("Hello World");
list.add("This is a list item with a lot of text. It will certainly take more than one line. This shows that the list item is indented and that the image is used as bullet.");
list.add("This is a test");

Need Your Help

Ordering NSStrings that are numbers of a particular format (ex 3:23.123)?

objective-c ios cocoa nsstring nstimeinterval

I have NSStrings that represent times of the format mm:ss.SSS in my app. I am trying to generate a list of "fastest times" and I'm struggling trying to figure out what data types to use to order th...

Create a seqential table from another table in SQL Server

sql sql-server table

I have the following table in my SQL Server database:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.