Add test for document in potrait orientation
Remove duplicate code
Extract Layout class
Fix gsub with replacement hash for Ruby 1.8

Fix a regression that was introduced with commit 3116d2641e44:
in Ruby 1.8, String#gsub can not be used with replacement hash.
Remove unused accessor methods
Use ERB for templating
Use single quotes
Add test for correct number of converted pages
Extract method for retrieving PDF infos
Use map instead of each for Hash creation
Use a hash for initialization arguments
Use 'and' as nil guard instead of ternary operator
Small change
Small change
Update copyright information