Skip to content

Instantly share code, notes, and snippets.

@fullstackplus
Created October 21, 2014 14:34
Show Gist options
  • Save fullstackplus/cbe94f075a44f5f7f278 to your computer and use it in GitHub Desktop.
Save fullstackplus/cbe94f075a44f5f7f278 to your computer and use it in GitHub Desktop.
require 'docverter'
Docverter.base_url = 'http://c.docverter.com'
File.open("out.pdf", "w+") do |f|
f.write(Docverter::Conversion.run do |c|
c.from = "markdown"
c.to = "pdf"
c.add_input_file("input.md")
# c.stylesheet = "stylesheet.css"
# c.add_other_file "stylesheet.css"
end)
end
# Docverter::Conversion.run do |c|
# c.from = "markdown"
# c.to = "pdf"
# c.add_input_file("input.md")
# c.stylesheet = "stylesheet.css"
# c.add_other_file "stylesheet.css"
# end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment