quba-viewer icon indicating copy to clipboard operation
quba-viewer copied to clipboard

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

Open hh-it-co opened this issue 1 year ago • 2 comments

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?

hh-it-co avatar Sep 16 '24 23:09 hh-it-co

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

jstaerk avatar Sep 28 '24 10:09 jstaerk

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.

hh-it-co avatar Sep 28 '24 10:09 hh-it-co

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

jstaerk avatar Oct 02 '24 13:10 jstaerk

I couldn't reopen this Issue, so I started https://github.com/zugferd/quba-viewer/issues/120 .

mtlmarko89 avatar Dec 19 '24 08:12 mtlmarko89