VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.Pdf.Tree Namespace / PdfPage Class / PdfPage Constructors / PdfPage Constructor(PdfDocument,RectangleF)
Syntax Example Requirements SeeAlso
In This Topic
    PdfPage Constructor(PdfDocument,RectangleF)
    In This Topic
    Initializes a new instance of the PdfPage class.
    Syntax

    Parameters

    document
    Parent document of this page.
    mediaBox
    MediaBox of new page, in user units.
    Example

    Here is an example that shows how to create a new PDF page and add the page to a PDF document.

    
    ' page size
    Dim pageSize As New System.Drawing.RectangleF(0, 0, 600, 800)
    ' create new page of specified size
    Dim page As New Vintasoft.Imaging.Pdf.Tree.PdfPage(document, pageSize)
    ' add page to a PDF document
    document.Pages.Add(page) 
    
    
    
    // page size
    System.Drawing.RectangleF pageSize = new System.Drawing.RectangleF(0, 0, 600, 800);
    // create new page of specified size
    Vintasoft.Imaging.Pdf.Tree.PdfPage page =
        new Vintasoft.Imaging.Pdf.Tree.PdfPage(document, pageSize);
    // add page to a PDF document
    document.Pages.Add(page); 
    
    

    Requirements

    Target Platforms: .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also