Options in incorrect location #2

fleuryc opened this Issue Feb 5, 2013 · 2 comments


None yet

2 participants

fleuryc commented Feb 5, 2013


When I do this :

$pdf = $this->createPdf();
$pdf->renderPage('foo', array('model'=>$model), array('orientation'=>'Landscape'));

I get a blank page with no PDF.

And $pdf->getCommand('toto'); returns :

'/usr/local/bin/wkhtmltopdf-amd64' --encoding 'UTF-8' --margin-top '0' --margin-right '0' --margin-bottom '0' --margin-left '0' /home/bar/www-dev/xxx/protected/runtime/tmp_WkHtmlToPdf_gVDVhc.html --orientation 'Landscape' toto

wich, once executed in CLI :

--orientation specified in incorrect location

  wkhtmltopdf 0.11.0 rc1


Maybe I'm not setting the option correctly...


Please check the output of wkhtmltopdf -H: --orientation is not a page option but a global option. That means, you can not set the orientation per page with wkhtmltopdf.

@mikehaertl mikehaertl closed this Feb 5, 2013
fleuryc commented Feb 6, 2013

@mikehaertl Arrgh! Right... My bad.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment