This method adds a page to the PDF document

[Visual Basic] Public Function AddPage() As Boolean
[C#] public bool AddPage();

Parameters

None

Return Value

Returns True if successful, otherwise returns False

Explanation

The AddPage method adds a page to the PDF document. Once the page has been added, use the AddImage method to add an image to the page. The image formats supported are BMP and JPEG.

The PDF document will be saved in the file and path specified by the SaveFileName property.

The AddPage method should be used with the other PDF methods in the following order: Start, AddPage, AddImage, EndPage, End

Example

Also see the example on the Start method page.

AddPage example:

[Visual C#.NET]
imageKit1.File.Pdf.SaveFileName = "test.pdf";
imageKit1.File.Pdf.Start();
//Adds a B5 sized page
imageKit1.File.Pdf.DocumentSize = "B5";
imageKit1.File.Pdf.AddPage();
//adds and image to that page
imageKit1.File.Pdf.AddImage("Image.jpg", 0, 0, 100, 100);
imageKit1.File.Pdf.EndPage();
//adds a A4 sized page
imageKit1.File.Pdf.DocumentSize = "a4";
imageKit1.File.Pdf.AddPage();
//adds an image to that page
imageKit1.File.Pdf.AddImage("Image.bmp", 0, 0, 100, 100);
imageKit1.File.Pdf.EndPage();
imageKit1.File.Pdf.End();

Also See

ImageKit.File.Pdf Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET3 is created by Newtone Corporation