I need to insert a blank page to an existing PDF using Itextsharp in the end of the PDF if it has odd number of pages. I could sucessfully get the. Add Page Numbers to Existing PDF Document in C# PDF, we can add the blank page to any place in the PDF file you want, such as at the first, the middle of . I am generating PDF file with the help of Add+a+new+page+in+ iTextSharp. 0 //insert blank page at the end of the PDF file.

Author: Mosho Arashizshura
Country: Switzerland
Language: English (Spanish)
Genre: Spiritual
Published (Last): 2 March 2016
Pages: 412
PDF File Size: 18.47 Mb
ePub File Size: 14.56 Mb
ISBN: 678-9-88610-351-1
Downloads: 35879
Price: Free* [*Free Regsitration Required]
Uploader: Fenritilar

So you probably need an instance of source PdfDocument and a few lines of code:.

I’m actually, working on a project and I’m not that familiar with igextsharp. GetImportedPage reader, importedPageNumber ; cb. Gary Remember to mark your thread as resolved. Thanks for the update – this was quite a while ago. Manipulating existing PDFs iText 7. Maybe due to a newer version of ITextSharp.

Adding another page on existing pdf using itextsharp-VBForums

Click this link if you want to see how to answer this question in iText 5. I dont answer coding questions via PM or EMail. Visit our Linux sister site. What was your search string? Add new Chunk ; worked for me.


All times are GMT I’m trying to concatenate a huge number of PDF paye to create a print-ready file, so that I don’t have to print them one by one. Sign up or log in Sign up using Google. The print-ready file I want needs to be duplex, so for the documents I have which are only 1 page, I need to add a blank page for the “back” of the document, otherwise the following document is messed up.

How to add blank pages while concatenating several PDFs using PdfSmartCopy | iText Developers

Dim copier As iTextSharp. You may have to register before you can post: How to add a blank page to a pdf using iTextSharp? GetInstance document, pdfStreamOut ; document. Better understand the signs that your business has outgrown its current database. Adding another page on existing pdf using eixsting Yes, you can certainly do this using iTextSharp.

Adding another page on existing pdf using itextsharp. I can confirm that for newer version you should add a Chunk instead of a table.


Stack Overflow works best with JavaScript enabled. If a letter has an odd number of pages I need to append a blank page, so existint can print the letters double-sided. Skip to main content. Just want to ask, is it possible pags add another page on existing pdf using itextsharp.? Here is the code that will add a blank page if the document I am merging has an odd number of pages: Is there any way to add blank pages while concatenating files using PdfSmartCopy?

How to insert an empty page in a PDF file in C#

Sign up using Facebook. Net version and it can be converted to C fairly easily. Please post a thread in the appropriate forum irextsharp. Dim reader As iTextSharp. The time now is Hope to hear from you soon. Here is the basic code I have at the moment for merging all of the letters: Posted on StackOverflow on Jan 30,