Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Commit

Permalink
release 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
klimov-paul committed Oct 17, 2019
1 parent c64955a commit c38755d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Yii 2 HTML to PDF conversion extension Change Log
=================================================

1.0.7 Under Development
1.0.7, October 17, 2019
-----------------------

- Enh #21: Added support for Yii alias at `Wkhtmltopdf::$binPath` (berosoboy)
Expand Down

2 comments on commit c38755d

@BuryYa
Copy link

@BuryYa BuryYa commented on c38755d Jan 15, 2020

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.

@arenovec
Copy link

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 не подтянется

Please sign in to comment.