Update pdfocr.rb

Make extension checking for PDF not case-sensitive