daudmalik06/PhpChromeToPdf

abortIfChromeIsNotInstalled not working when exist Chrome Window

Opened this issue · 4 comments

I have an problem when changing filehtml to pdf. while has been installed chrome

what's the error you are facing ?
steps to reproduce the issue ?

result : {"code":9999,"message":"there is problem in running provided chrome's binary Error message is :Failed without error message: C: && cd "C:\Program Files (x86)\Google\Chrome\Application" && "chrome.exe --version""}

i doing setup :
$pathChrome = 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe';
$chrome = new Chrome(null,$pathChrome);
it seems command line doing gender error

This https://github.com/daudmalik06/PhpChromeToPdf/blob/master/src/Chrome.php#L273

results in

Failed without error message: C: && cd "C:\Program Files (x86)\Google\Chrome\Application" && "chrome.exe --version" (Exit code: 1)

Apparently --version doesn't exist on windows[1]

[1] https://stackoverflow.com/questions/50880917/how-to-get-chrome-version-using-command-prompt-in-windows

will be pushing soon patch for this.