asciidoctor-pdf: pdf-page-size: xx gives an error

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

asciidoctor-pdf: pdf-page-size: xx gives an error

mave
Hello,

trying the example on the asciidoctor-pdf side an uncommenting the page size setting gives following error on my system (Linux Mint 17.1 with Mate-Desktop, asciidoctor(-pdf) installes via gem.):
undefined method `safe_load' for Psych:Module
  Use --trace for backtrace

With trace, more output:

mv@mv-ThinkCentre-M70e ~/Dokumente/Asciidoctor $ asciidoctor --trace  -r asciidoctor-pdf -b pdf example01.adoc
/var/lib/gems/1.9.1/gems/asciidoctor-pdf-1.5.0.alpha.7/lib/asciidoctor-pdf/converter.rb:201:in `build_pdf_options': undefined method `safe_load' for Psych:Module (NoMethodError)
	from /var/lib/gems/1.9.1/gems/asciidoctor-pdf-1.5.0.alpha.7/lib/asciidoctor-pdf/converter.rb:168:in `init_pdf'
	from /var/lib/gems/1.9.1/gems/asciidoctor-pdf-1.5.0.alpha.7/lib/asciidoctor-pdf/converter.rb:101:in `convert_document'
	from /var/lib/gems/1.9.1/gems/asciidoctor-pdf-1.5.0.alpha.7/lib/asciidoctor-pdf/converter.rb:76:in `convert'
	from /var/lib/gems/1.9.1/gems/asciidoctor-1.5.2/lib/asciidoctor/document.rb:1028:in `convert'
	from /var/lib/gems/1.9.1/gems/asciidoctor-1.5.2/lib/asciidoctor.rb:1499:in `convert'
	from /var/lib/gems/1.9.1/gems/asciidoctor-1.5.2/lib/asciidoctor/cli/invoker.rb:94:in `block in invoke!'
	from /var/lib/gems/1.9.1/gems/asciidoctor-1.5.2/lib/asciidoctor/cli/invoker.rb:86:in `each'
	from /var/lib/gems/1.9.1/gems/asciidoctor-1.5.2/lib/asciidoctor/cli/invoker.rb:86:in `invoke!'
	from /var/lib/gems/1.9.1/gems/asciidoctor-1.5.2/bin/asciidoctor:10:in `<top (required)>'
	from /usr/local/bin/asciidoctor:23:in `load'
	from /usr/local/bin/asciidoctor:23:in `<main>'

This comes with any value for pdf-page-size. Only uncommenting gives success.
Is it a problem of my Linux Mint (Ubuntu 14.04) or anything else? (I don't know Ruby inside...)

Regards