pdf2pptx icon indicating copy to clipboard operation
pdf2pptx copied to clipboard

No such file or directory

Open makoto-yamashita opened this issue 2 years ago • 1 comments

Thank you very much for developing a useful script. I am trying to use this script, but unfortunately, it does not work well. It seems that the directories are not generated properly.

$ ./pdf2pptx.sh test.pdf Doing test.pdf Extraction succ! cp: cannot stat '/home/???/tmp/template': No such file or directory mkdir: cannot create directory 'test.pdf.pptx.base/ppt/media': No such file or directory cp: target 'test.pdf.pptx.base/ppt/media/' is not a directory ./pdf2pptx.sh: line 99: pushd: test.pdf.pptx.base/ppt/media/: No such file or directory Processing 3 cp: cannot stat '../slides/slide1.xml': No such file or directory ./pdf2pptx.sh: line 95: ../slides/_rels/slide-3.xml.rels: No such file or directory cat: ../slides/_rels/slide1.xml.rels: No such file or directory sed: can't read ../_rels/presentation.xml.rels: No such file or directory sed: can't read ../../[Content_Types].xml: No such file or directory sed: can't read ../presentation.xml: No such file or directory Processing 2 cp: cannot stat '../slides/slide1.xml': No such file or directory ./pdf2pptx.sh: line 95: ../slides/_rels/slide-2.xml.rels: No such file or directory cat: ../slides/_rels/slide1.xml.rels: No such file or directory sed: can't read ../_rels/presentation.xml.rels: No such file or directory sed: can't read ../../[Content_Types].xml: No such file or directory sed: can't read ../presentation.xml: No such file or directory Processing 1 cp: cannot stat '../slides/slide1.xml': No such file or directory ./pdf2pptx.sh: line 95: ../slides/_rels/slide-1.xml.rels: No such file or directory cat: ../slides/_rels/slide1.xml.rels: No such file or directory sed: can't read ../_rels/presentation.xml.rels: No such file or directory sed: can't read ../../[Content_Types].xml: No such file or directory sed: can't read ../presentation.xml: No such file or directory Processing 0 cp: cannot stat '../slides/slide1.xml': No such file or directory ./pdf2pptx.sh: line 95: ../slides/_rels/slide-0.xml.rels: No such file or directory cat: ../slides/_rels/slide1.xml.rels: No such file or directory sed: can't read ../_rels/presentation.xml.rels: No such file or directory sed: can't read ../../[Content_Types].xml: No such file or directory sed: can't read ../presentation.xml: No such file or directory sed: can't read ../presentation.xml: No such file or directory ./pdf2pptx.sh: line 112: popd: directory stack empty ./pdf2pptx.sh: line 114: pushd: test.pdf.pptx.base: No such file or directory ./pdf2pptx.sh: line 117: popd: directory stack empty

makoto-yamashita avatar Apr 12 '22 07:04 makoto-yamashita

I got the same problem; by reading the first error, you can see that you need to have the repo Template directory to process the output. So, just put the directory next to your Tex presentation, and it should work.

davebulaval avatar May 20 '22 14:05 davebulaval