问题描述
给定一个 PDF
(包含多个页面)、一个页面(stream
)和一个索引,我如何用我的流替换目标 index
处的页面并保存 pdf?
public Stream ReplacepdfpageAtIndex(Stream pdfStream,int index,Stream replacePageStream)
{
List<Stream> pdfpages= //fetch pdf pages
pdfpages.RemoveAt(index);
pdfpages.Insert(index,replacePageStream);
Stream newPdf=//create new pdf using the edited list
return newPdf;
}
我想知道是否有任何开源解决方案,或者我可以轻松推出自己的解决方案,因为我只需要将 pdf 分成几页,然后替换其中一个。
我还检查了 ITextSharp
,但没有看到我需要的功能。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)