/** * @param string $inputfile * @param string $outputfile * * @throws FileNotFoundException * @return string */ public function toHtml($inputfile, $outputfile) { if (!file_exists($inputfile)) { throw new FileNotFoundException("File {$inputfile} not found."); } $output = $this->pdftohtml->command(array($inputfile, $outputfile)); return $output; }