iText

How to use an image as list symbol?

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?

Posted on StackOverflow on Aug 20, 2015 by lucas.mdo

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:

##GITHUB:https://github.com/itext/itext-publications-examples-java/blob/master/src/main/java/com/itextpdf/samples/sandbox/objects/ListWithImageAsBullet.java##

The result looks like this:

Image as a bullet

Click How to use an image as list symbol? | iText 5 PDF Development Guide if you want to see how to answer this question in iText 5.