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

[cli 2.16.1] action pdf -> resulting pdf is corrupt in cii invoice having empty DateString #727

Open
griesi007 opened this issue Feb 3, 2025 · 0 comments

Comments

@griesi007
Copy link

Visualizing a cii invoice having an empty DateString results in a corrupted pdf. I am seeing a view issues here:

  • The pdf should not be created when an exception occurs and the resulting pdf is corrupt
  • Also a proper error exit code should be returned. Currently 0 is returned.
  • As the invoice successfully validates it would be desirable if the the empty DateString would not lead to an exception and could be handled gracefully

Offending xml part
<ram:TaxPointDate> <udt:DateString format="102"></udt:DateString> </ram:TaxPointDate>

Command
java -Xmx1G -jar mustang-cli.jar --disable-file-logging --action pdf --source CII-input-file.xml --out visualize.pdf

Input file
CII-input-file.xml.txt

Output file
visualize.pdf

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

1 participant