node-pandoc | A wrapper around the pandoc tool for node
kandi X-RAY | node-pandoc Summary
kandi X-RAY | node-pandoc Summary
A wrapper around the pandoc tool for node.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of node-pandoc
node-pandoc Key Features
node-pandoc Examples and Code Snippets
Community Discussions
Trending Discussions on node-pandoc
QUESTION
I'm trying to convert some HTML markup into a PDF in a NodeJS web application using pandoc. I've pandoc installed on the server where my app is running. I'm using node-pandoc to try and achieve this. This is the code I'm using:
...ANSWER
Answered 2019-Jan-17 at 10:39I assume the error says something like Unknown writer: pdf
, right?
I'm supposed to get the result of the conversion on the console if I omit the
-o
flag
That's actually only possible for non-binary output formats. So it's not possible for PDF. You need to use -o out.pdf
. Then use node's fs
to read that file again and send the binary to the client, or move it to some static file server.
Btw. You also need to install LaTeX. See http://pandoc.org/MANUAL.html#creating-a-pdf
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install node-pandoc
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page