Read More

Creating PDF in android using iText library

Add dependency for itext library in your build.gradle.

Create file path to store the pdf file in your device.

Create your custom font for your pdf using FontFamily.

Create an instance of document class.

Add paragraph in your document using add method.

Create the following class “MyPdf.java” . I assume that the code is pretty much self-explaining. I tried to add lots of comments to make it easier to understand.

 

. . .

Comment

Add Your Comment

Be the first to comment.

css.php
Hire Us!
Brief us about your requirements and we'll get back to you.
Woo! Hooy!
We have just recieved your project brief and our expert will contact you shortly.
Send Again
Close