pdfjoining
This commit is contained in:
parent
a3c3daefd0
commit
5cfb9df5ce
1 changed files with 4 additions and 2 deletions
|
@ -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`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue