md-kumihan is simple tool for building pdf file from markdown.
node build.js
After running this command, src/test.md
is converted to pdf/test.pdf
.
input the path of markdown which you'd like to change to pdf.
the stylesheet which is used to decorate the body of document.
the script which is used to render a pdf. Contents and decoration of the header and footer is included in this script.
sudo yum install git rubygems nodejs
sudo gem install bundler
bundle install --path vendor/bundle
git clone https://github.com/kongou-ae/md-kumihan.git
cd md-kumihan/
wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
tar jxfv phantomjs-1.9.8-linux-x86_64.tar.bz2
mv phantomjs-1.9.8-linux-x86_64 phantomjs
node build.js
default pdf.css
is used IPAexGothic
. Installation of IPAexGothic
is as below.
cd /tmp/
wget http://ossipedia.ipa.go.jp/ipafont/ipaexfont/IPAexfont00201.php
unzip IPAexfont00201.php
sudo mv IPAexfont00201 /usr/share/fonts/
fc-cache -fv