5

This question was originally asked on Stack Overflow but since licensing questions are off topic I move it here. So here comes the original question about this open source library:


I want to use the Java PDF Library iText in a commercial Project (for generating simple PDF reports), which is distributed as CDs. I don't plan to change the original source-code from iText – just using it. So as far as I know it uses the AGPL after Version 2.1.7 , but before it uses MPL/LGPL.

My questions are:

  1. Can I use it in my commercial Project?
  2. Can I choose which licence to use (MPL/LGPL)?
  3. Is it enough to ship the licence texts or do I need to ship the Source code (from iText) too?
  4. Is it okay if I wrap everything in one Exe-File or do I need to have the iText jar in a separate Folder?
  5. Do I need to mention the use of iText inside my Program (like a Info message or something) ?
Glorfindel
  • 161
  • 1
  • 1
  • 10
Lonzak
  • 347
  • 3
  • 12

2 Answers2

8

And the answer was:

First, please note, I am not a lawyer!

For iText LGPL/MPL version 2.1.7:

  • Q: Can I use it in my commercial Project? A: Yes if you comply with LGPL.

  • Q: Can I choose which licence to use (MPL/LGPL)? A: There is no "choosing" the license is LGPL/MPL. You can however choose to comply to the LGPL license OR to comply to MPL license (which better suits your needs).

  • Q: Is it enough to ship the licence texts or do I need to ship the Source code (from iText) too? A: E.g. a download link should suffice

  • Q: Do I need to mention the use of iText inside my Program (like a Info message or something)? A: Yes

For iText AGPL version > 5.X / 7.X

  • Q: Can I use it in my commercial Project? A: Yes if you open source your whole project (thus also AGPL it) otherwise no.

  • Q: Can I choose which licence to use (MPL/LGPL)? A: There is no "chosing" the license is what it is: AGPL

  • Q: Is it enough to ship the licence texts or do I need to ship the Source code (from iText) too? A: You have to supply the whole sourcode of everything - but a download link should suffice.

  • Q: Do I need to mention the use of iText inside my Program (like a Info message or something)? A: Yes

Whether you should still use an old version of iText (pre 5.X) is a totally different question.

Lonzak
  • 347
  • 3
  • 12
  • 1
    It seems you copied this answer from somewhere. Could you provide proper attribution, e.g. a link to the original answerer? – amon Aug 13 '18 at 14:59
  • Update: I found the original link. Only visisble to users with enough reputation though... – Lonzak Aug 14 '18 at 13:00
  • 1
    For transparency sake: The original question on SO, which is now linked in this question, was also self-answered by @Lonzak. – Bart van Ingen Schenau Aug 14 '18 at 15:10
  • Thanks for the flowers ;-) but just for clarification: Answered but not self-answered. I posted it here since I wanted to link the answer for several other questions... – Lonzak Aug 14 '18 at 15:28
  • 1
    @Lonzak since you're still keeping this answer up to date (thanks!) could you also consider accepting it, so that the question is put to bed? – MadHatter Mar 19 '21 at 09:01
2

Short answer: Migrate to OpenPdf, it will fix the issues of iText 2.1.7 and it is open source and up to date.

https://github.com/LibrePDF/OpenPDF

You cannot use iText open source 2.1.7 because of IP/license issues of the code fragments in the code.

Baris
  • 121
  • 1