OpenPDF is a Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is the LGPL/MPL open source successor of iText, and is based on some forks of iText 4 svn tag. We welcome contributions from other developers. Please feel free to submit pull-requests and bugreports to this GitHub repository.
Get version 1.3.27 here - https://github.com/LibrePDF/OpenPDF/releases/tag/1.3.27
Add this to your pom.xml file to use the latest version of OpenPDF:
<dependency>
<groupId>com.github.librepdf</groupId>
<artifactId>openpdf</artifactId>
<version>1.3.27</version>
</dependency>
GNU Lesser General Public License (LGPL), Version 2.1
Mozilla Public License Version 2.0
We want OpenPDF to consist of source code which is consistently licensed with the LGPL and MPL licences only. This also means that any new contributions to the project must have a dual LGPL and MPL license only.
- Examples
- JavaDoc
- Tutorial (wiki, work in progress)
- Migration from iText, TIFF support
OpenPDF is open source software with a LGPL and MPL license. It is a fork of iText version 4, more specifically iText svn tag 4.2.0, which was hosted publicly on sourceforge with LGPL and MPL license headers in the source code, and LGPL and MPL license documents in the svn repository. Beginning with version 5.0 of iText, the developers have moved to the AGPL to improve their ability to sell commercial licenses.
OpenPDF ancestors in GitHub (in fork order):
- @rtfarte / OpenPDF - parent of LibrePDF/OpenPDF
- @kulatamicuda / iText-4.2.0
- @daviddurand / iText-4.2.0
- @ymasory / iText-4.2.0 - original parent on GitHub
- Spring Framework https://github.com/spring-projects/spring-framework
- flyingsaucer https://github.com/flyingsaucerproject/flyingsaucer
- Confluence PDF Export
- Digital Signature Service - https://github.com/esig/dss
- OpenCMS, Nuxeo Web Framework, QR Invoice Library and many closed source commercial applications as well.
- Full list here: https://mvnrepository.com/artifact/com.github.librepdf/openpdf/usages
OpenPDF can be used with Android, more info here: Android-support
Release the hounds! Please send all pull requests. Make sure that your contributions can be released with a dual LGPL and MPL license. In particular, pull requests to the OpenPDF project must only contain code that you have written yourself. GPL or AGPL licensed code will not be acceptable.
- Code indentation style is 4 spaces.
- Generally try to preserve the coding style in the file you are modifying.
- Java 8 or later is required to use OpenPDF. All versions Java 8 to Java OpenJDK 15 have been tested to work.
As of 1.3.21 the UTF-8 Liberation fonts moved to its own module, to reduce the size of the OpenPDF
jar. If you want to use the bundled UTF-8 fonts, please add the following dependency to your project
and use the class org.librepdf.openpdf.fonts.Liberation
.
<dependency>
<groupId>com.github.librepdf</groupId>
<artifactId>openpdf-fonts-extra</artifactId>
<version>${openpdf.version}</version>
</dependency>
OpenPDF supports glyph substitution which is required for correct rendering of fonts ligature substitution requirements. FOP dependency is required to enable this feature. Refer following wiki for details: wiki
OpenPDF supports OpenType layout, glyph positioning, reordering and substitution which is e.g. required for correct positioning of accents, the rendering of non-Latin and right-to-left scripts. OpenPDF supports DIN 91379. See: wiki
- BouncyCastle (BouncyCastle is used to sign PDF files, so it's a recommended
dependency)
- Provider (
org.bouncycastle:bcprov-jdk15on
ororg.bouncycastle:bcprov-ext-jdk15on
depending on which algorithm you are using) - PKIX/CMS (
org.bouncycastle:bcpkix-jdk15on
)
- Provider (
- Apache FOP (
org.apache.xmlgraphics:fop
) - Please refer to our pom.xml to see what version is needed.
Significant Contributors to OpenPDF on GitHub.
In GitHub User alphabetical order.
- @asturio - Claudio Clemens
- @bengolder - Benjamin Golder
- @daviddurand - David G. Durand
- @kulatamicuda
- @rtfarte - Art Krahenbuhl
- @tlxtellef - Tellef
- @abdullahcevik - Abdullah Çevik
- @albfernandez - Alberto Fernández
- @andreasrosdal - Andreas Røsdal - Maintainer of OpenPDF from 1.0 to 1.3.15, now retired from OpenPDF development.
- @applikationsprogramvara
- @armin-weber
- @bradh - Brad Hards
- @bsanchezb - Aleksandr Beliakov
- @bsmelo - Bruno Melo
- @chrismaster - Chris Master
- @codecracker2014 - Gajendra Kumar
- @dandybudach - Dandy Budach
- @entrix
- @glarfs
- @harrati - Youssef Harrati
- @jeffrey-easyesi
- @jherkel - Jakub Herkel
- @jokimaki - Juha Jokimäki
- @karolbe - Karol Bryd
- @Kindrat - Oleksii
- @kwart - Josef Cacek
- @lapo-luchini - Lapo Luchini
- @laurerunser - Laure Runser
- @macromogic
- @mahdilamb - Mahdi Lamb
- @MartinKocour - Martin Kocour
- @mluppi - Matthias Luppi
- @mppperez - Marco Postigo Perez
- @MrSkip - Dmytro Mula
- @nfmueller
- @noavarice
- @PalAditya - Aditya Pal
- @prashantbhat - Prashant Bhat
- @rammetzger
- @RangerMak
- @razilein - Sita Geßner
- @salsolatragus - Sven Amann
- @sa-sh
- @sixdouglas - Douglas Six
- @suiaing
- @sullis
- @SuperPat45
- @syakovyn - Serhiy Yakovyn
- @tia-99
- @Tonny-Gu - NekoDaemon
- @Transzendental
- @ubermichael - Michael Joyce
- @VedranSlankovic
- @V-F
- @vic0075 - Vikash Tiwari
- @vk-github18 - Volker Kunert
- @weiyeh - Wei-Yeh Lee
- @Wugengxian
- @ymasory
Also, a very special thanks to the iText developers ;)