Hi, i have insert an image in a document RTF.
This is a code:
 paragraph = new Paragraph();
           paragraph.setAlignment(Element.ALIGN_CENTER);
           paragraph.setSpacingAfter(5);
           
           Table table = new Table(1);
           table.setAlignment(Element.ALIGN_CENTER);
           table.setBorderWidth(1);
           table.setBorderColor(new Color(0, 0, 0));
           table.setPadding(5);
           RtfCell cell = new RtfCell();
           
           Image jpg = Image.getInstance(new URL(mapURL));
           jpg.setAlignment(Element.ALIGN_CENTER);     
            
           Anchor anchor1 = new Anchor("image.jpg",
FontFactory.getFont(FontFactory.HELVETICA, 12, Font.UNDERLINE, new Color(0, 0,
255)));
           anchor1.setReference(mapURL);
           
           cell.addElement(jpg);
           cell.addElement(anchor1);
           cell.setBorderWidthRight(0);
           cell.setBorderWidthLeft(0);
           cell.setBorderWidthTop(0);
           cell.setBorderWidthBottom(0);
           table.addCell(cell);
           
           paragraph.add(table);
           document.add(paragraph);

The problem is:
If i use WordPad the image does not appear.
The image is not looked at with wordpad.
With word instead it appears.
Someone has one solution in order to make to appear the image with wordpad?

Thank you Rossana 




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to