See the DrawInlineImagePlain.java (if you want inline) or DrawTransparentImage.java (if you want resource; you can leave out the transparency part if you don't need it) example.
If you want to use a non-rgb image, the spec will tell you what values you need for the PDImage dictionary.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have gone through watermark.java its a very good example, can anyone please suggest me how to add image as watermark or any example will be better.
See the DrawInlineImagePlain.java (if you want inline) or DrawTransparentImage.java (if you want resource; you can leave out the transparency part if you don't need it) example.
If you want to use a non-rgb image, the spec will tell you what values you need for the PDImage dictionary.