Closed joschu closed 5 years ago
Hello @joschu
Thanks for taking the time to resolve this issue and thanks for reporting it to me. I'll apply your fix.
Cheers. PS> I enjoyed your tutorial last week.
Hah, funny coincidence that you were at my talk -- glad you liked it!
Thank you very much to both, for the very useful script and for the correction for OSX!
shouldn't this be a) closed or b) a pull request?
I am on OSX (10.14.5).
After patching the original script using
patch < (your_diff_file_above)
I got a new file './pdf2pptx.sh.rej'
then I try to convert my pdf file '5FA.pdf' to a pptx file, I got this error message:
$ ./pdf2pptx.sh.rej 5FA.pdf
./pdf2pptx.sh.rej: line 1: 5FA.pdf: command not found
./pdf2pptx.sh.rej: line 2: 5FA.pdf: command not found
./pdf2pptx.sh.rej: line 15: p:sldIdLst: No such file or directory
./pdf2pptx.sh.rej: line 26: +: command not found
./pdf2pptx.sh.rej: line 29: Override: No such file or directory
./pdf2pptx.sh.rej: line 31: +: command not found
./pdf2pptx.sh.rej: line 34: 5FA: value too great for base (error token is "5FA")
I don't know how to solve this problem. can you help me? thanks in advance!
Hi @tddschn , I'm not sure what's going on. I think the new file you're trying to run may be corrupted during the process. The suggested change above is easy to apply, I'd recommend you do it manually.
There are four instances of sed -i
that you should change to sed -i ''
. Apprently OSX expects an empty string ''
after the -i
command. That's it.
The latest commit fixes this issue through a pull-request. I'm closing the issue.
I got a bunch of errors on OSX saying "invalid command code..." Fixed by switching
-i
to-i ''
based on this stackoverflow post: http://stackoverflow.com/questions/7573368/in-place-edits-with-sed-on-os-x Thanks for posting this great tool!