Open asmaier opened 6 months ago
Ah, it seems the issue just occurs when using the redirection symbol >
. When I simply run
$ java -jar templater-json.jar templater_test.xlsx templater_test.json templater_out.xlsx
the resulting file is valid. So this is more a documentation bug. The example usage described at https://github.com/ngs-doo/TemplaterExamples/tree/master/Intermediate/TemplaterJson should only describe the command without redirection.
Eh, I think it works like that on some systems, but didn't test on various others. Tnx for the report. I'll look into updating descriptions and mention piping separately from main usage
I'm running the following command using templater 8.0.0 on Mac OS X 14.5 with java openjdk 21.0.2 2024-01-16 and zsh 5.9:
When I try to unzip the output file I get
However I was also able to unzip the file using
(see https://askubuntu.com/questions/54904/unzip-error-end-of-central-directory-signature-not-found)
And when I open the file Excel will also complain, but it is able to repair the file, see screenshots
Still it would be nice, if this issue could be fixed. Because many non-Excel tools will not be able to open the Excel file created by
templater-json.jar
, because it is not a valid zipfile.