• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support

Add Page

Adds a page to a PDF document with a standard page size.

Code

using DRIT.Pdf;

using var doc = new PdfDocument();

// Add a page with A4 size
var page = doc.Pages.Add(PdfPageSize.A4);

// Or add a page with custom size
var customPage = doc.Pages.Add(new PdfPageSize(612, 792)); // Letter size in points

doc.Save("pages.pdf");

Output

pages.pdf

  • Improve this Doc
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX