Go to file
dankito 9e765c53a9 Created README with examples that show how to read eInvoices 2024-11-15 18:02:50 +01:00
e-invoicing-domain Created README with examples that show how to read eInvoices 2024-11-15 18:02:50 +01:00
gradle/wrapper Initial commit 2024-11-13 15:56:21 +01:00
.gitignore Initial commit 2024-11-13 15:56:21 +01:00
README.md Created README with examples that show how to read eInvoices 2024-11-15 18:02:50 +01:00
build.gradle.kts Initial commit 2024-11-13 15:56:21 +01:00
gradle.properties Implemented MailReader that checks all mails of an email account if they have an eInvoice as attachment 2024-11-15 17:47:46 +01:00
gradlew Initial commit 2024-11-13 15:56:21 +01:00
gradlew.bat Initial commit 2024-11-13 15:56:21 +01:00
settings.gradle.kts Implemented creating XRechnung 2024-11-13 19:59:02 +01:00

README.md

eInvoicing

Tools for working with eInvoicing according to EU standard EU 16931.

Reading

Extract eInvoice from a PDF or XML file:

val reader = EInvoiceReader()

// read a ZUGFeRD or Factor-X PDF that contains eInvoice XML as attachment
val invoiceFromPDF = reader.extractFromPdf(File("ZUGFeRD.pdf"))

// read a eInvoice XML file like XRechnung:
val invoiceFromXml = reader.readFromXml(File("XRechnung.xml"))

Find all invoices of an IMAP email account

        val mailReader = MailReader()
        
        val mailsWithEInvoices = mailReader.listAllMessagesWithEInvoice(MailAccount(
            username = "", // your mail account username
            password = "", // your mail account username
            serverAddress = "", // IMAP server address
            port = null // IMAP server port, leave null if default port 993
        ))