ITEXTSHARP ADD BLANK PAGE TO EXISTING PDF

I'm trying to add a blank page after each page in the source PDF - not just 1 blank page at the end of the source PDF document. Each page of the Source PDF can have a different size and orientation. I've tried the following. It seems to make the blank page following each page the orientation and size of the Source PDF Page but the page from the Source PDF seems to be the orientation and size of the previous blank page:. As I explained in the comments, this question is a duplicate of How to add blank pages to an existing PDF in java? You should use PdfStamper instead of PdfWriter this has been explained a zillion times before in different answers on StackOverflow.

Author:Kirr Meztikree
Country:Peru
Language:English (Spanish)
Genre:Art
Published (Last):16 January 2014
Pages:429
PDF File Size:12.2 Mb
ePub File Size:12.76 Mb
ISBN:154-2-62544-684-3
Downloads:71786
Price:Free* [*Free Regsitration Required]
Uploader:Meziktilar



I'm trying to add a blank page after each page in the source PDF - not just 1 blank page at the end of the source PDF document. Each page of the Source PDF can have a different size and orientation. I've tried the following. It seems to make the blank page following each page the orientation and size of the Source PDF Page but the page from the Source PDF seems to be the orientation and size of the previous blank page:.

As I explained in the comments, this question is a duplicate of How to add blank pages to an existing PDF in java? You should use PdfStamper instead of PdfWriter this has been explained a zillion times before in different answers on StackOverflow. Using the InsertPage method you can add pages of any size you want:. Note that I add the pages in reverse order. This is elementary logic: adding a page changes the page count and it is harder to keep track of pageNumber if you go from page 1 to total.

It's easier do go in the reverse direction. InsertPage pageNumber, PageSize. Close ; reader. Close ; Note that I add the pages in reverse order.

KIRUNDI PHRASES PDF

Corporate Edition 4 Tutorials

By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I am trying to do something I thought would be quite simple, however it is not so straight forward and google has not helped. If a letter has an odd number of pages I need to append a blank page, so we can print the letters double-sided. Well I was almost there.

DARYAB PASHTO DICTIONARY PDF

How to insert new page in PDF with itextSharp

.

CLEANTH BROOKS THE LANGUAGE OF PARADOX PDF

Subscribe to RSS

.

LOS SAUCES ALGERNON BLACKWOOD PDF

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

.

Related Articles