Insert page into existing PDF using itextsharp(使用 itextsharp 将页面插入现有 PDF)
问题描述
我们正在使用 itextsharp 从多个 PDF 文件创建一个 PDF.如何将新页面插入到文件中已有多个页面的 PDF 文件中?当我使用添加页面时,它会覆盖现有页面,并且只保存选择的 1 页.
We are using itextsharp to create a single PDF from multiple PDF files. How do I insert a new page into a PDF file that has multiple pages already in the file? When I use add page it is overwriting the existing pages and only saves the 1 page that was selected.
这是我用来将页面添加到现有 PDF 的代码:
Here is the code that I am using to add the page to the existing PDF:
推荐答案
此代码有效.您需要使用不同的文件来输出结果.
This code works. You need to have a different file to output the results.
这篇关于使用 itextsharp 将页面插入现有 PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!