This repository has been archived by the owner on Jan 10, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
c38755d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
USE:
$html = <<<HTML
Simple Content
HTML;Yii::$app->html2pdf
->convert($html)
->saveAs('/path/to/output.pdf');
When run: Unable to convert file 'H:\xampp\htdocs\druk\runtime\html2pdf\wkhB4C3.tmp.html': 'wkhtmltopdf' is not recognized as an internal or external command,
operable program or batch file.
c38755d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Добрый день, мне кажется, тут ошибка
protected function convertFileInternal
$command = Yii::getAlias($this->binPath); а должн быть $command = Yii::getAlias('@'.$this->binPath); Иначе, alias не подтянется