Add a Table

Contents
[ ]

Add Table to PDF using C++

Tables in a PDF document organize data in rows and columns in a systematic manner. Aspose.PDF for C++ API lets you add tables to a PDF document, and add rows and columns to it in your C++ applications. The Table class is used to add a table to the document. The following steps can be followed to add a table to a PDF document using C++.

  1. Create a Document object
  2. Add a Page to the pages collection of the document
  3. Create a Table object using the MakeObject call
  4. Add a table border using the BorderInfo class
  5. Set properties of the table such as default cell color and column width
  6. Add Rows to the Table
  7. Add Cells to rows
  8. Add table to the Document Paragraphs collection
  9. Save PDF document to disc