Click or drag to resize

PdfGeneratedDocumentAddPage Method

Adds the page to the document, returning the added page. This is a convenience method to streamline the process of adding pages to a document.

Namespace:  Atalasoft.PdfDoc.Generating
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public PdfGeneratedPage AddPage(
	PdfGeneratedPage page
)

Parameters

page
Type: Atalasoft.PdfDoc.GeneratingPdfGeneratedPage
The page.

Return Value

Type: PdfGeneratedPage
The new page that has been added.
Examples
Instead of writing this code:
PdfGeneratedDocument doc = new PdfGeneratedDocument();
PdfGeneratedPage page = new PdfGeneratedPage(PdfDefaultPages.Letter);
doc.Pages.Add(page);
You can write this instead:
PdfGeneratedDocument doc = new PdfGeneratedDocument();
PdfGeneratedPage page = doc.AddPage(PdfDefaultPages.Letter);
See Also