Skip to content

Instantly share code, notes, and snippets.

@vijaydev
Created August 31, 2011 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vijaydev/1183606 to your computer and use it in GitHub Desktop.
Save vijaydev/1183606 to your computer and use it in GitHub Desktop.
pdf, err = Open3.popen3(command) do |stdin, stdout, stderr|
#stdin.binmode
#stdout.binmode
#stderr.binmode
stdin.write(File.read('pdf_string.xhtml'))
stdin.close
[stdout.read, stderr.read]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment