Check Mobile App
Read now

Creating PDF in android using iText library

Save

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.

 

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

css.php

When I think in getting solutions for my Ecommerce Platform, I think of Webkul. They have been such a blessing in our business. We have spent thousands of dollars in support and modules from them. We love their support team. They work very closely with us, and they always go the extra mile when we need help.

Michael Urresta

Michael Urresta

Talk to Sales

Global

Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home