Force Table Rendering on New Page
Contents[ Hide ]
The com.aspose.pdf.Table class provides makes it possible to create/render tables in PDF documents. A similar feature is also supported by the aspose.pdf.Table class but we encourage our customers to try using the latest Document Object Model (DOM) of the com.aspose.pdf package, because all the new features and issue resolution is being performed in new DOM. However, the legacy Aspose.PDF for Java (the aspose.pdf package) has a method isInNewPage(..) in the paragraph class, so that the paragraph is rendered on a new page. For backward compatibility, the isInNewPage(..) method has been added to the BaseParagraph class.
The following code snippets show the steps to create a table and force it to render on new page.