wkhtmltopdf is an open source (LGPLv3) command line tools to render HTML into PDF. You can find more information about wkhtmltopdf from here
wkhtmltopdf is not working if input file name has special characters.
Let me put an example to clear the scienerio
Below code is working fine
shell_exec('wkhtmltopdf http://example.com/docs/Export_import_data_masters.html test.pdf');
But below code is not working if url have brackets in file name
shell_exec('wkhtmltopdf http://example.com/docs/Export_(import_data)_masters.html test.pdf');
It fails to create pdf from url if url has special characters in the file name.
Hope i am able to clear the question.
NOTE: File Link is provided by the third party so i can't change the file name or file path.
file_get_contents()and save it into a file with a simple name. You can then run the exec command without any difficulties.