Skip to content

Instantly share code, notes, and snippets.

@rkellermeyer
Created January 10, 2013 21:06
Show Gist options
  • Save rkellermeyer/4505793 to your computer and use it in GitHub Desktop.
Save rkellermeyer/4505793 to your computer and use it in GitHub Desktop.
PDF'r
require 'prawn'
Prawn::Document.generate("testing.pdf") do
Dir.foreach(".") do |f|
text "#{f}"
content = File.foreach(f).map(&:line) unless f == "." || f == ".."
text "#{content}"
end
end
@rkellermeyer
Copy link
Author

Still generates errors ... Needs work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment