Can you save your file in a local disk? Just to test if you really has the image loaded.
-----Mensagem original----- De: Lee KwunHung [mailto:[email protected]] Enviada em: sexta-feira, 13 de agosto de 2010 05:56 Para: [email protected] Assunto: [Regarding output the image to the pdf] Hi, First, thanks for all the efforts that you guys contributed. I encounter a problem when I try to import an image from a website and stored in in the pdf. PDXObjectImage ximage; File file =new File(surl); // surl is a string, which have the url of an image.For instance, http://www.abc.com/a.jpg ximage = new PDJpeg(document, new FileInputStream(file) ); //document is PDDocument and I already have the page set up and everything. However, it doesn't work. So I wonder whether any of the developers or anyone know how to solve it. Thanks, bobby

