![]() ![]() When the object of this type is passed to a PdfDocument (class), every element added to this document will be written to the file specified. String dest = "C:/itextExamples/addingTable.pdf" Instantiate the PdfWriter class by passing a string value (representing the path where you need to create a PDF) to its constructor, as shown below. The constructor of this class accepts a string, representing the path of the file where the PDF is to be created. The PdfWriter class represents the DocWriter for a PDF. Then, to add a table to the document, you need to instantiate the Table class and add this object to the document using the add() method.įollowing are the steps to create a PDF document with a Table in it. While instantiating this class, you need to pass a PdfDocument object as a parameter to its constructor. You can create an empty PDF Document by instantiating the Document class. ![]() In this chapter, we will see how to create a PDF document and add a table to it using the iText library. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |