example codes:
        import com.radaee.pdf.*;

        //doc is object of Document
        Page page = doc.NewPage(0, 210.0f * 72 / 25.4f, 297.0f * 72 / 25.4f);//create A4 paper size on page 0. 

        //the created page initialized as blank page, so we draw some contents as following:
        page.ObjsStart();//load page contents.

        Path path = new Path();
        path.MoveTo(50, 50);
        path.LineTo(100, 150);
        path.LineTo(300, 10);
        path.ClosePath();;//close contour.
        PageContent content = new PageContent();
        content.SetFillColor(0xFFFF0000);//red
        content.FillPath(path, true);
        page.AddContent(content, true);//flush for rendering later.
        //page.AddContent(content, false);//not flush, if it write only.
        page.Close();
    
the example above draw a triangle on new page.
if the PDF file exists pages, the old page 0 will change to page 1, old page 1 will change to page 2, and all other pages are increase page NO by one.
if doc.NewPage(10, ...) invoked, page 10 and pages after 10 shall increase page NO by 1. page 0-9 not changed.