Asciidoctor :: Discussion
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.
https://github.com/asciidoctor/asciidoctor-pdf/blob/master/lib/asciidoctor-pdf/converter.rb#L1235
That file holds the key info you probably need :)
-Dan
--
Dan Allen |
http://google.com/profiles/dan.j.allen
Free forum by Nabble
Edit this page