如何利用itext将结果集中数据分页显示在一个PDF文件中
解决方案 »
- hashCode()的用法
- java_home为什么会影响正常JDK的使用
- Which three will compile and rim without exception?
- 有关java包的问题
- 帮我找一下错误好吗?
- 哪位仁兄那有用java实现的ftp连接其中包括上传下载文件和文件列表, 及获得文件后缀和后缀列表 请帮个忙 小弟感激不尽
- 在java中 是否有和exit sub 功能一样的指令?
- 看过Thinking in JAVA的来帮帮忙(关于private interface)
- Jbuilder6中如何加载Microsoft SQL SERVER Driver
- 寻求Java 图形开发中文资料
- 初学Hibernate的困惑(各位帮帮忙)
- 到底JAVA中,哪个开发工具好点?
Document document = new Document();
try
{
PdfWriter.getInstance(document, new FileOutputStream ("Chap0101.pdf"));
document.open();
document.add(new Paragraph("Hello World"));
}
catch(DocumentException de)
{
System.err.println(de.getMessage());
}
catch(IOException ioe)
{
System.err.println(ioe.getMessage());
}
document.close();