30

Are iText Java libraries to generate PDF documents free or do we have to pay for it?

1
  • 5
    I'm voting to close this question as off-topic because it is about licensing or legal issues, not programming or software development. See here and here for details, and the help center for more.
    – durron597
    Jun 15, 2015 at 1:02

1 Answer 1

37

I am the original developer of iText and the CEO of the iText Group. I'm also a Mentor at the Founder Institute. Please take a look at my slides for the session about Startup Legal and IP for the Founder Institute: http://www.slideshare.net/blowagie/startup-legal-and-ip

iText is software and therefor copyright law applies:

Copyright law allows an author to prohibit others from reproducing, adapting, or distributing copies of the author's work.

According to the copyright law, you do not have the right to use software that you didn't write yourself.

However, iText is distributed using a copyleft license:

Copyleft gives every person who receives a copy of a work permission to reproduce, adapt or distribute the work as long as any resulting copies or adaptations are also bound by the same copyleft licensing scheme.

This means that anyone can use iText for free as long as the conditions for its use are met.

To know more about the conditions, you need to take a look at the license. In this case: the AGPL. This means that:

  • You can not distribute a closed source application that is based on iText without distributing the full source code of your own application.
  • You can not use iText in a web application without making the full source code of your web application available through that web application.

This is why people often refer to the AGPL as a viral license: all the software that touches an AGPL library such as iText needs to be free too.

Obviously, there are plenty of companies who do not want to ship their source code. That's why iText Software also provides iText under another license. This license is a commercial license. You have to pay for it.

To answer your question: iText can be used for free in situations where you also distribute your software for free. As soon as you want to use iText in a closed source, proprietary environment, you have to pay for your use of iText.

Please read the Legal section in the book "The Best iText Questions on StackOverflow":

There's also a FAQ on the iText web site that will give you more info. If you want the advice of a lawyer, you can always watch this video: https://www.youtube.com/watch?v=NCwhEWEPV-E (15 minutes).

14
  • 2
    what about the 4.2.1 version? Is that able to be used in commercial applications without the mentioned restrictions?
    – raspacorp
    Sep 29, 2016 at 18:56
  • 2
    iText 4.2.1 is not an official version. It was made by a third party (a company that no longer exists) and that party used our Maven groupId. This is not allowed. See itextpdf.com/maven-update-problem-with-itext-4.2.2 We also successfully won a lawsuit against an abuser. See slide 32-37 of slideshare.net/mobile/blowagie/… Sep 29, 2016 at 21:37
  • 2
    See mvnrepository.com/artifact/com.lowagie/itext/4.2.2 We didn't change "history". We created 4.2.2 and moved lowagie (which is my name) to itextpdf (which is the groupId we use for iText 5). That broke many Maven builds which caused a lot of (unfair) anger among developers, but it was necessary to make those developers aware of the fact that they weren't using the real iText. Oct 1, 2016 at 9:38
  • 4
    Can I user IText 7 for free for an intranet web portal used by my company which will never be public?
    – Maya
    Oct 19, 2019 at 14:21
  • 1
    Summary: iText can be used only in open source projects. For your own project you have to pay.
    – garish
    Oct 5, 2020 at 11:37

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