Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 1.04 KB

File metadata and controls

15 lines (9 loc) · 1.04 KB

Add new PDF pages in C# and VB.NET

This sample shows how to add or insert pages into your PDF documents using Docotic.Pdf library.

Description

You can access the collection of PDF document pages using the PdfDocument.Pages property. Use the PdfDocument.AddPage method to add a new page to the end of the document. The PdfDocument.InsertPage method inserts a new page into an arbitrary position in the document.

Valid values for the index argument of the InsertPage method are from 0 to Pages.Count inclusive. Calling the InsertPage method with the index == Pages.Count is the same as calling the AddPage method.

Both the AddPage and InsertPage methods return the newly created page.

See also