Home > Forum > C# > c# add a blank page to a pdf

c# add a blank page to a pdf

by zz   on Apr 12, 2016   Category: C#  |  Views: 1066    |  Points: 5   |  Starter 
  Reply
how to create c# add a blank page to a pdf
by using this page http://www.rasteredge.com/how-to/csharp-imaging/pdf-insert/


Bookmark and Share:
 
  User Reply  | Ask a question  |   Reply 
  Re :c# add a blank page to a pdf   
by Adhithvaibhav
on Apr 13 2016 1:48AM
Points : 10
Starter 
Hi,

Please go through below link for C# code to insert blank page in pdf file under C# [u]Sample Code to Add and Insert Blank Page to PDF File[/u] section
http://www.rasteredge.com/how-to/csharp-imaging/pdf-insert/

Thanks
  Re :c# add a blank page to a pdf   
by Michael Brown
on Apr 14 2016 1:53AM
Points : 10
Starter 
Hi,

There are many libraries you can use to achieve this. I often use free spire.pdf(https://freepdf.codeplex.com). It's quite simple, Check:

PdfDocument doc = new PdfDocument();
doc.LoadFromFile("sample.pdf");
//Insert a new page as second page
doc.Pages.Insert(1);
//If you want to insert a blank page as last page
//doc.Pages.Add();
doc.SaveToFile("result.pdf");
doc.Close();
System.Diagnostics.Process.Start("result.pdf");
  Re :c# add a blank page to a pdf   
by zz
on Apr 26 2016 12:30AM
Points : 10
Starter 
You can download and try this interesting high quality software on rasteredge page for c# accessible links in pdf http://www.rasteredge.com/how-to/csharp-imaging/pdf-edit-bookmark-outline/

Recent Post

Latest Posts