iText:将PDF分成几个PDF(每页1个) [英] iText: split a PDF into several PDF (1 per page)

查看:391
本文介绍了iText:将PDF分成几个PDF(每页1个)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要的是:给定一个10页的pdf文件,我想在网页的表格中显示该pdf的每一页。实现这一目标的最佳方法是什么?我想一种方法是将这个10页-pdf文件分成10页1页pdf,并以编程方式将每个pdf显示在一行表格上。我可以用iText做到这一点吗?有没有更好的方法来实现这个目标?

What I want is that: given a 10-pages-pdf-file, I want to display each page of that pdf inside a table on the web. What is the best way to achieve this? I guess one way is to split this 10-pages-pdf-file into 10 1-pages pdf, and programmatically display each pdf onto a row of a table. Can I do this with iText? Is there a better way to accomplish this?

推荐答案

看看这里:

http://www.rgagnon.com/javadetails/java-0647.html

有趣的是,下面粘贴的代码正是我指向的代码; - )

Funny, the code pasted below is exactly the one I pointed to ;-)

这篇关于iText:将PDF分成几个PDF(每页1个)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆