git clone https://github.com/snts-collective/snts-mdpdf
cd snts-mdpdf
npm run build
npm i -g
snts-mdpdf <options>
|
-
-s
or--src
: The source path of the Markdown file -
-d
or--dest
?: The destination file of the PDF file. If a destination path isn't provided; the PDF will be saved in the same path as--src
, with the file extension ".pdf" instead of ".md" -
-f
or--format
?: The format of the PDF being generated. If none is provided, the defaultA4
will be used. The available options are:-
A3
-
A4
-
A5
-
Legal
-
Letter
-
Tabloid
-
-
-l
or--logoType
?: The size and position of the snts'collective logo being prepended. If no argument is provided; the PDF generator will convert the document without any logo attached at all. The available options are:-
LargeCenter
-
SmallCenter
-
LargeLeft
-
SmallLeft
-
LargeRight
-
SmallRight
-
BottomLargeCenter
-
BottomSmallCenter
-
BottomLargeLeft
-
BottomSmallLeft
-
BottomLargeRight
-
BottomSmallRight
-
snts-mdpdf -s ./doc.md -d ./doc.pdf -f A4
Running the snts-mdpdf
command will convert the entered Markdown and generate a PDF document in the destination path with the snts'collective logo optionally prepended.
👤 Sihle (snts'abode) Masebuku snts.abode@gmail.com
Give a ⭐️ if this project helped you!