Use pdf_info and build tolerances for pixel sizes
Use pdf_info for page count
OOPify
Use lower density for faster decoding
Use prawn to generate PDFs directly onto input_file