mikehaertl / phpwkhtmltopdf

A slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface
MIT License
1.6k stars 238 forks source link

Can't access post variables #309

Closed lincab closed 5 years ago

lincab commented 5 years ago

We use the xvfb server with this library, but we need access to the post variables that's being send with the following command on the page that we're loading and we can't access it, or is there is a special way of accessing it:

$wkhtmltopdf->binary = "xvfb-run /usr/bin/wkhtmltopdf --post orderid 33243 --post listid 20393 --cookie PHPSESSID lg4ss6hnsbj8ol98uftian3cq0";

$pdf = $wkhtmltopdf->send($file, true);

We've tried the normal $_REQUEST['orderid'], but without any luck.

mikehaertl commented 5 years ago

I'm sorry, but this is not really related to the library. I don't know what wkhtmltopdf does in this case. You should point your question to the wkhtmltopdf developers. This here is only a PHP class that wraps around the binary.