RtfWriter2.getInstance(document,
new FileOutputStream("E:/test11/word.doc"));
document.open();
// Image image = Image.getInstance("E:/test1/main_from.gif");
URL url = new URL("http://www.google.com.hk/intl/zh-CN/images/logo_cn.png");
Image image = Image.getInstance(url);
document.add(image);
document.add(new Paragraph("用java生成word檔案"));
document.close();