
EMBEDDED) Creating Line Separator: // LINE SEPARATOR LineSeparator lineSeparator = new LineSeparator() tLineColor( new BaseColor(0, 0, 0, 68)) Adding Heading: // Title Order Details.

createFont( "assets/fonts/brandon_medium.otf", "UTF-8", BaseFont. */ BaseColor mColorAccent = new BaseColor(0, 153, 204, 255) float mHeadingFontSize = 20.0f float mValueFontSize = 26.0f /** * How to USE FONT. A4) document.addCreationDate() document.addAuthor( "Android School") document.addCreator( "Pratik Butani") Setting up Fonts from Assets: /*** * Variables for further use. getInstance(document, new FileOutputStream(dest)) // Open to write document.open() Setting up Document: // Document Settings tPageSize(PageSize.

Now we will see step by step how to create whole PDF: Creating Document object: /** * Creating Document */ Document document = new Document() // Location to save PdfWriter. First of all, you need to add dependency in adle (you can find latest version of that library here): compile 'com.itextpdf:itextg:5.5.10'
