Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 267 Bytes
<?php
class Html2PdfPresenter extends Nette\Application\UI\Presenter
{
public function renderDefault($html)
{
$document = new Kdyby\Wkhtmltopdf\Document($this->context->parameters['tempDir']);
$document->addHtml($html);
$this->sendResponse($document);
}
}