def paths_to_pdfs
      paths = []
      
      Zip::ZipFile.open(path) do |zipfile|
        zipfile.select { |file| zipfile.get_entry(file).file? }.each do |file|
          paths << file.name if file.name.end_with? ".pdf"
        end
      end
      
      paths
    end
def paths_to_pdfs
      paths = []
      
      Zip::ZipFile.open(path) do |zipfile|
        zipfile.select { |file| zipfile.get_entry(file).file? }.each do |file|
          paths << file.name if file.name.end_with? ".pdf"
        end
      end
      
      paths
    end
def paths_to_pdfs paths = [ ] Zip :: ZipFile . open ( path ) do | zipfile | zipfile . select { | file | zipfile . get_entry ( file ) . file? } . each do | file | paths << file . name if file . name . end_with? ".pdf" end end paths end
Locate all PDF files within the ZIP
Locate all PDF files within the ZIP