geronimo ferreira wrote: > Hi, > > I been having problem with adding an image to a dynamic web report when > I deploy the web app on a server. > > Image jpg = Image.getInstance("/resources/logo.jpg"); > > My project structure is as following: > > meta-inf > resources -this contains the image > web-inf > > I believe because of this i get a the page has no document exception.
You mean a 'The document has no pages' exception. Please create a jar with the image in the resources directory, then write some code that reads the image. Don't use iText to do this, just use java.io.* classes. My guess is that it won't work because of some mistake you made, but I can't tell you what mistake, because you're not giving us sufficient information. Anyhow, your experiments with the small iText-less example will help you find the problem. As soon as your test case works, continue and try making a PDF document that shows the image on a page. br, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/