Ruby scripts for PDF files