If you want to export data to a pdf file, using iText (as your tag indicates) there are various options.
-
You can use the core API, which allows you to insert tables, lists and text. For more information you can consult
http://developers.itextpdf.com/content/itext-7-jump-start-tutorial/examples -
You can export to HTML, and then use pdfHTML (newest iText add-on) to convert the given HTML to pdf. For more information (+examples) consult
http://itextpdf.com/itext7/pdfhtml