diff --git a/printable.rb b/printable.rb index 705544b..521fcaa 100644 --- a/printable.rb +++ b/printable.rb @@ -11,9 +11,11 @@ user="www-data" file=ARGV[0] # dokuwiki pagenme as argument # parse dokuwiki -> html - `php /var/www/libarynth/dokuwiki/bin/dokucli.php < #{doku}/#{file}.txt > /tmp/#{file}.html` # 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` + +# merge single pdfs +`pdfjoin #{repo}/print/*.pdf --outfile #{repo}/fieldguide.pdf` +