Closed pat-s closed 7 years ago
It looks like something touches the file(s) after installation. Can you look at the location pointed out by the error, that is first line of //code/decktape.js
and check if there is a %
character?
Here are the first 20 lines of decktape.js
%PDF-1.4
1 0 obj
<<
/Title (þÿ)
/Creator (þÿ)
/Producer (þÿ Q t 5 . 6 . 0)
/CreationDate (D:20170313213955)
>>
endobj
2 0 obj
<<
/Type /Catalog
/Pages 3 0 R
>>
endobj
4 0 obj
<<
/Type /ExtGState
/SA true
/SM 0.02
It looks like a PDF file. So it seems like something overrides the decktape.js
script with a PDF file. That explains why it works after install and then breaks.
Yeah. So it seems that the output (when it works once) is not only written to the outcome pdf but also overrides decktape.js
.
Its strange that this happened from one day to the other although I used decktape
before dozen of times with the same call(s). Do you have an idea which application/lib could be involved here/is in charge of writing the pdf file?
How to you invoke DeckTape? What's your environment?
Followed exactly your README. I'm on macOS 10.12.3 (Sierra)
Followed exactly your README
Which part? 😃 What exact command are you using the first time the decktape.js
script gets overwritten?
I cannot think of any application / libs that could induce such a behaviour. I suspect the command you're running somehow resolves the PDF output positional argument as being the decktape.js
first argument for some reasons...
ah you mean the execution command:
~/tools/decktape-1.0.0/phantomjs ~/tools/decktape-1.0.0/decktape.js ~/Servers/GIServer/home/patrick/PhD/R/presentations/spring-school-R-intro/presentation/R-intro.html ~/tools/decktape-1.0.0/decktape.js ~/Servers/GIServer/home/patrick/PhD/R/presentations/spring-school-R-intro/presentation/R-intro.pdf
Ahh I just saw that (for whatever reason) ~/tools/decktape-1.0.0/decktape.js
was inserted in the position of the output pdf argument (maybe some copy/pasting error) - so my fault and everything is fine.
Sorry for stealing your time :)
No worries, I'm glad we work this out!
Getting the following error since a few days
Reinstallation solves it for one run, then the problem occurs again. I'm on macOS 10.12.3 using the Remark plugin