ZUGFeRD / quba-viewer

Quba is a viewer for electronic invoices
Apache License 2.0
97 stars 19 forks source link

structured invoice data won't get parsed from zugferd-file #68

Closed hh-it-co closed 1 week ago

hh-it-co commented 2 months ago

test.pdf

I created the attached zugferd file. Several validators don't indicate any problems with that file, but quba viewer does not open the xml-viewer when opening the pdf-file. When i open the xml-file directly, the invoice-data will be parsed correctly.

What is my pdf-file oder quba viewer missing, that this file won't be parsed properly?

jstaerk commented 1 month ago

interesting, the file is valid so it's on quba

hh-it-co commented 1 month ago

I've created a pdf-to-zugferd-converter based on itext7 (.net core) to generate this file. In the meantime, i've created another solution based on ghostscript, that creates a file, that got parsed correctly in quba viewer. I may convert the same file with both solutions and compare the xmp meta data of both resulting files.

jstaerk commented 1 month ago

I pushed somtehing which works with your file (branch https://github.com/ZUGFeRD/quba-viewer/tree/issues/68) but I will invest a short while to make it compatible for all other files as well. Summary: one can embed files in PDF as list or as tree, we're used to tree but I believe in your case it's list, this is the corresponding issue in mustang: https://github.com/ZUGFeRD/mustangproject/issues/60

And this is the internal structure of a usual factur-x in a cos viewer Screenshot 2024-10-02 153024

and your file (both valid) Screenshot 2024-10-02 153036