使用iTextSharp的PDF删除第一页 [英] delete first page from PDF using iTextSharp

查看:578
本文介绍了使用iTextSharp的PDF删除第一页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以删除使用iTextSharp的PDF的第一页?

Is there a way we can delete the first page of the PDF using iTextSharp?

推荐答案

有去除没有直接的方法使用iTextSharp的一个PDF页面。

There's no direct way to remove pages from a PDF using iTextSharp.

不过,您可以复制你从PDF想要的页面,并跳到你不想要的页面。在你的情况下,你复制了所有,但第一页

However, you can copy all the pages you want from a PDF and skip the pages you don't want. In your case you'd copy out all but the first page.

我写了,它这个基础上我上的此博客条目

I wrote a method that does this based on the code I found on this blog entry.

这篇关于使用iTextSharp的PDF删除第一页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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