从PDF中删除页面 [英] Remove page from PDF
本文介绍了从PDF中删除页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前正在使用iText,我想知道是否有办法从PDF文件中删除页面?
I'm currently using iText and I'm wondering if there is a way to delete a page from a PDF file?
我已经打开了一个页面读者等,我想删除一个页面,然后将其保存回新文件;我怎么能这样做?
I have opened it up with a reader etc., and I want to remove a page before it is then saved back to a new file; how can I do that?
推荐答案
'更好''删除'页面的方式正在做
The 'better' way to 'delete' pages is doing
reader.selectPages("1-5,10-12");
这意味着我们只选择页面1-5,10-12有效地删除第6-9页。
Which means we only select pages 1-5, 10-12 effectively 'deleting' pages 6-9.
这篇关于从PDF中删除页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文