生成文本超链接的方式:
com.lowagie.text.Anchor anchor = new Anchor("我是超链接");
anchor.setReference("D://a.txt");
anchor.setName("我是超链接");
document.add(anchor);
生成文本超链接的方式:
com.lowagie.text.Anchor anchor = new Anchor("我是超链接");
anchor.setReference("D://a.txt");
anchor.setName("我是超链接");
document.add(anchor);