Note that render_file is a Prawn API, not an Asciidoctor API. The converter is both a Prawn Document and an Asciidoctor Converter object.-DanOn Tue, Mar 31, 2015 at 8:22 PM, Dan Allen <[hidden email]> wrote: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 targetYou can see where this is done in Asciidoctor PDF internals.That file holds the key info you probably need :)-Dan--Dan Allen | http://google.com/profiles/dan.j.allen--Dan Allen | http://google.com/profiles/dan.j.allen
If you reply to this email, your message will be added to the discussion below:http://discuss.asciidoctor.org/PDF-s-from-asciidoctor-pdf-ruby-gem-tp2715p2898.html
| Free forum by Nabble | Edit this page |