code: public function supports($filename)
      {
          try {
              $this->pdfFile->getInfo($filename);
          } catch (\Exception $e) {
              return false;
          }
  
          return true;
      }
docs: {@inheritdoc}