Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hh-it-co opened this issue Sep 16, 2024 · 3 comments
Open

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

hh-it-co opened this issue Sep 16, 2024 · 3 comments

Comments

@hh-it-co
Copy link

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
Copy link
Contributor

jstaerk commented Sep 28, 2024

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

@hh-it-co
Copy link
Author

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
Copy link
Contributor

jstaerk commented Oct 2, 2024

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: ZUGFeRD/mustangproject#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants