Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to add image in PDF using JspDyn and what is the path to keep images

Hi anyone help me out to get this issue solved...

I'm creating PDF on the fly but I'm unable to get the image in it. It says Invalid path if i give the path like this Image image =new Image( request.getWebResourcePath() + /images/MyLogo.gif","picture Mylogo.gif");

And also I have tried like this

com.lowagie.text.Image img = com.lowagie.text.Image.getInstance("MyLogo.gif"); document.add(img);

I have kept the image in /images folder.

Still i'm facing path problem....

Please guide me to resolve this issue..



Former Member

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question