Create Blank Page
Creating a blank PDF page refers to generating a page within a PDF document that contains no content, no text, images, or graphics. This can be done intentionally for various purposes, such as adding space for notes, separating sections of a document, or aligning content in a specific layout.
Creating a PDF with a blank page using IronPDF is straightforward. For detailed guidance on using IronPDF to generate PDF documents, visit the IronPDF Official Documentation. Simply supply two integers for width and height to the PdfDocument constructor to create a PDF with a blank page.
- Width and Height: The dimensions for the PDF page are defined in points (1/72 of an inch). In this example, it uses a 270 x 270 point square page.
PdfDocumentConstructor: ThePdfDocumentclass from the IronPDF library takes two integers as arguments for width and height and creates a new PDF document containing one blank page with those dimensions.SaveAsMethod: This method is used to save the newly created PDF to the file system. In this example, the PDF is saved with the filename "blankPage.pdf".

