Skip to content

Instantly share code, notes, and snippets.

@jakevose
jakevose / pdf_fixer.rb
Created October 19, 2016 19:19
Rewriting munged PDF files.
class PdfFixer
def initialize
@paths = Dir.glob('in/**/*.pdf').sort
`rm -rf out && mkdir out`
end
def process_files
start_logging
@paths.each do |path|