simonhaenisch / md-to-pdf

Hackable CLI tool for converting Markdown files to PDF using Node.js and headless Chrome.
https://www.npmjs.com/md-to-pdf
MIT License
1.16k stars 110 forks source link

feature: output directory #133

Open fr-olivier opened 2 years ago

fr-olivier commented 2 years ago

Hello,

Is it possible to specify a folder path where all the generated pdfs would be exported?

simonhaenisch commented 1 year ago

Not at this time, only if you pipe the markdown from stdin you'll be able to redirect stdout into a file, or if you use the programmatic API, you get the PDF content and you can change where to write the file. But both options are limited to converting a single file at a time.

fr-olivier commented 1 year ago

Ok thanks for your answer. If this is added as a new feature in the future, is there a way to be informed about it?

simonhaenisch commented 1 year ago

Yeah I'll leave this issue open as a feature request so as long as you're subscribed you'll know when it gets closed.