Skip to content

Commit

Permalink
can get exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Jan 23, 2018
1 parent 8c92514 commit e9bf391
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Report/PdfReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,24 @@ public function render(DocumentInterface $document, $parameters = [])
return $this->buildPdf($html);
}

/**
* Pdf Options.
*
* @param array $options
*/
public function setOptions(array $options)
{
$this->pdfRender->setOptions($options);
}

/**
* @return Pdf
*/
public function getExporter()
{
return $this->pdfRender;
}

/**
* @param string $path
*/
Expand Down
1 change: 1 addition & 0 deletions tests/Report/PdfReportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ protected function setUp()
'page-width' => '21cm',
'page-height' => '29.7cm',
]);
$this->pdf->getExporter()->tmpDir = __DIR__.'/../Resources';

$this->pdf->setBinPath($this->isWindows()
? __DIR__.'/../../wkhtmltopdf.exe'
Expand Down

0 comments on commit e9bf391

Please sign in to comment.