This page explains how to format text inside your PDF file. There are adding line Indent, adding text border, adding underline text, adding a border around the added text, text alignment for floating box contents and etc....Create new document object Document document = new Document (); Page...Page page = document . getPages (). add (); TextFragment text...