Options in incorrect location #2

Closed
fleuryc opened this Issue Feb 5, 2013 · 2 comments

Projects

None yet

2 participants

@fleuryc
fleuryc commented Feb 5, 2013

Hi!

When I do this :

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

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

Name:
  wkhtmltopdf 0.11.0 rc1


...

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

@mikehaertl
Owner

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
fleuryc commented Feb 6, 2013

@mikehaertl Arrgh! Right... My bad.

Thanks.

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