-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
“pagedjs-cli not found” on Windows #8061
Comments
Did you install pagedjs-cli? This does not come with pandoc. Is it in your path? |
Yes, as I mentioned.
I can run it in both PowerShell and in cmd. And in Git-Bash too. These are three different scripts, as far as I see in
|
Sorry, I missed the info in your orginal report. |
Maybe; I didn't set the paths explicitly. I installed node.js with installer (not nvm-windows), and installed
This resulted in adding
Default |
Can you try passing in an absolute path? |
Well, when I pass absolute path into Then, is there any way to pass the path relative to
But this results in «%APPDATA%/npm/pagedjs-cli.cmd not found.» |
I would have thought that |
in defaults files. Note that pdf-engine can take an absolute path, so this is useful. See #8061.
That would be nice, thanks. Also, please consider making Regarding the original issue. Now I've tried the same on three different Windows machines — everywhere result is the same: |
Unfortunately I'm an ignoramus when it comes to Windows, and I don't even have a Windows box to mess around with. Hopefully someone else can figure out what is going on here. |
Experiencing the same issue. pandoc --standalone --embed-resources --defaults=../doc2/definition.yaml -f markdown-smart --pdf-engine="%ProgramFiles%\nodejs\pagedjs-cli.cmd" --output="../out/document2-pagedjs.pdf" vs pandoc --standalone --embed-resources --defaults=definition.yaml -f markdown-smart --output="%~dp0/../out/document2.html"
pagedjs-cli --media print -i "..\out\document2.html" -o "..\out\document2-pagedjs.pdf"
del "%~dp0/../out/document2.html" |
Explain the problem.
defaults.yaml
:input.md
can be any trivial markdown file.Expected behavior was generating
output.pdf
since all required dependencies are installed:Pandoc version?
pandoc-2.18-windows-x86_64.msi
:The text was updated successfully, but these errors were encountered: