Maven Repository

All QR Invoice Library artifacts are published in The Central Repository.

Maven Dependencies

The QR Invoice Library uses OpenPDF for creating PDFs.

QR Invoice Library with OpenPDF (default)

<dependencies>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.core</groupId>
        <artifactId>qrinvoice-core</artifactId>
        <version>1.14</version>
    </dependency>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.openpdf</groupId>
        <artifactId>qrinvoice-openpdf</artifactId>
        <version>1.14</version>
    </dependency>
</dependencies>

Optional - PDFBox

This is an optional dependency and is only required, if you want to scan / parse PDF documents for Swiss QR Codes. See How to Scan Documents for Swiss QR Codes

<dependencies>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.pdfbox</groupId>
        <artifactId>qrinvoice-pdfbox</artifactId>
        <version>1.14</version>
    </dependency>
</dependencies>

Sources Jars

Make sure to download the sources jar along with the dependencies.

Continue by reading QR bill basics.

DEPRECATED: QR Invoice Library with iText5 (requires additional licensing)

If you have a valid iText5 License and don’t want extra dependencies on OpenPDF, you can choose QR Invoice Library to use iText5.

This is still a valid, but deprecated option. Unless customers depend on iText5, we will discontinue iText5 support in the future.
<dependencies>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.core</groupId>
        <artifactId>qrinvoice-core</artifactId>
        <version>1.14</version>
    </dependency>
    <dependency>
        <groupId>ch.codeblock.qrinvoice.itext5</groupId>
        <artifactId>qrinvoice-itext5</artifactId>
        <version>1.14</version>
    </dependency>
</dependencies>