Closed john98nf closed 2 years ago
I John, Thanks for the feedback. Please do not hesitate to propose a merge request with your bug correction.
Pull request #59 has been created.
I ended up using ORIGINAL_NAME="${ORIGINAL_FILE%.*}"
, which is already present in other tools in the same repo and works for all file names.
I mark now this issue as closed.
Hello Nicolas and dear contributors,
I came accross your repo by reading this article. It came in handy as I repaired my documents and made them readable with open-source document viewers π. Thank you very much π!
I managed to locate a small typo/bug inside the pdf-repair script. In line 82, the filename variable is declared as:
but in line 95 the new file is created with the command:
This results to the name format "-repaired.pdf" for the output. One can easily fix the typo of the variable, but still this would result to files with the pdf extension inside their name (e.g. input.pdf-repaired.pdf).
π Proposed solution:
I would recommend a dirty fix in line 82, where we could drop the file extension from the
OUTPUT_FILE
variable.β This fix will not work properly if the input file has dots inside to name (e.g. input.foo.pdf).
Please, let me know if you want me to contribute to this project with this minor change.