Closes the current page and adds a new one to the PDF document. The size of the page will be defined by the property values PageHight and PageWidth.
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | // create new PDF_Writer object PDF_Writer.Writer PDF = new PDF_Writer.Writer(); // draw a sample string PDF.drawString("Page 1", 50, 50); // add new page PDF.addNewPage(); // draw another sample string on new page PDF.drawString("Page 2", 50, 50); // save PDF document to file system PDF.save(@"C:\PDF_Writer\test.pdf"); |