pdfjoining

This commit is contained in:
nik gaffney 2015-05-26 21:28:53 +02:00
parent a3c3daefd0
commit 5cfb9df5ce

View file

@ -11,9 +11,11 @@ user="www-data"
file=ARGV[0] # dokuwiki pagenme as argument file=ARGV[0] # dokuwiki pagenme as argument
# parse dokuwiki -> html # parse dokuwiki -> html
`php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html` `php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html`
# convert html -> pdf with pandoc # convert html -> pdf with pandoc
`pandoc /tmp/#{file}.html -S --template=#{repo}/pandoc/templates/fieldguide.tex --include-in-header=#{repo}/pandoc/header.tex --latex-engine=xelatex -o #{repo}/print/#{file}.pdf` `pandoc /tmp/#{file}.html -S --template=#{repo}/pandoc/templates/fieldguide.tex --include-in-header=#{repo}/pandoc/header.tex --latex-engine=xelatex -o #{repo}/print/#{file}.pdf`
# merge single pdfs
`pdfjoin #{repo}/print/*.pdf --outfile #{repo}/fieldguide.pdf`