PhpChromeToPdf icon indicating copy to clipboard operation
PhpChromeToPdf copied to clipboard

abortIfChromeIsNotInstalled not working when exist Chrome Window

Open NguyenTheSon opened this issue 7 years ago • 4 comments

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

NguyenTheSon avatar Jul 09 '18 03:07 NguyenTheSon

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

daudmalik06 avatar Jul 09 '18 10:07 daudmalik06

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

NguyenTheSon avatar Jul 10 '18 07:07 NguyenTheSon

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

marcus-at-localhost avatar Mar 24 '20 08:03 marcus-at-localhost

will be pushing soon patch for this.

daudmalik06 avatar Jan 10 '24 15:01 daudmalik06