reworking to Utils.pdf* use opened temporary files to reduce memory footprint
adding rspec tests