Skip to main content
Skip table of contents

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

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.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.