Re: PDF's from asciidoctor-pdf ruby gem ?

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/PDF-s-from-asciidoctor-pdf-ruby-gem-tp2715p2897.html


On Tue, Mar 31, 2015 at 7:13 PM, davidgamba [via Asciidoctor :: Discussion] <[hidden email]> wrote:
File.open("test.html", "w+") do |file|
        file.puts doc.render
    end

You need to use render_file, then it should sort out the extension properly.

doc.render_file target

You can see where this is done in Asciidoctor PDF internals.


That file holds the key info you probably need :)