I am looking for a free library to create and export PDF files.

I will receive StringBuilder like that:


and I need to generate and export to an user PDF file.


2 Answers 2


You can use any of the below APIs for creating and exporting PDF files from Java -

  1. Apache PDFBox
  2. BFO
  3. iText

You may want to have a look at Open Lowcode PDF (disclaimer: I am the author of this framework).

A first pre-production version was just released today on github. Feel free to have a look and provide feedback.

THe library aims at creating quickly forms and corporate documents.

The library is free and open-source, and also appropriate to incorporate in proprietary product (using Eclipse license).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.