code: def availability_pdf() -> bool:
      
      pdftotext = tools['pdftotext']
      if pdftotext:
          return True
      elif pdfminer:
          log.warning("PDF conversion: pdftotext missing; "
                      "using pdfminer (less efficient)")
          return True
      else:
          return False
docs: Is a PDF-to-text tool available?