How I can execute those two command line via php:
wkhtmltopdf www.google.com gg.pdf
&
oofice -headless -nologo -pt cup-pdf my.doc
they b
You should take a look at the System program execution section of the manual : PHP provides several functions that can be used to launch external commands / programs, including :
To create a pdf from php(in linux) you must use a wrapper.
$cmd = '/usr/bin/xvfb-run --server-args="-screen 0, 1920x1080x24" /usr/bin/wkhtmltopdf http://google.com /tmp/google.pdf';
exec($cmd);