Insert page into existing PDF using itextsharp
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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. Here is the code that I am using to add the page to the existing PDF: PdfReader reader = new PdfReader(sourcePdfPath); Document document = new Document(reader.GetPageSizeWithRotation(1)); PdfCopy pdfCopy = new PdfCopy(document, new System.IO.FileStream(outputPdfPath, System.IO