ZUGFeRD / mustangproject

Open Source Java e-Invoicing library, validator and tool (Factur-X/ZUGFeRD, UNCEFACT/CII XRechnung)
http://www.mustangproject.org
Apache License 2.0
240 stars 136 forks source link

Text overlay in generated PDF for field "Spezifikationskennung" #499

Closed zeratools closed 1 month ago

zeratools commented 1 month ago

Hello,

I generate a PDF from this UBL XRechnung XML file https://github.com/itplr-kosit/xrechnung-testsuite/blob/master/src/test/business-cases/standard/01.01a-INVOICE_ubl.xml It's working fine except there is a text overlay at the end on the "Spezifikationskennung" field See screen capture and full XML generated bellow.

This test is based on master branch code.

image 01.01a-INVOICE_ubl.xml.pdf

Best regards

zeratools commented 1 month ago

After some research in the code base, this overlay is caused by the presence of both CustomizationID and ProfileID in the XML:

    <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</cbc:CustomizationID>
    <cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>

This section layout in PDF is 2 column but the URN used as ID are too long for tha t display. I provided a pull request to switch this section on single column layout #500

This is the result with the changes I made: image 01.01a-INVOICE_ubl.xml.pdf

jstaerk commented 1 month ago

thank you, merged, I hope it is non destructive :-)