beganovich / beganovich/snappdf
Windows error [0923/112045.363:ERROR:chrome_main.cc(207)] Multiple targets are not supported in headless mode.
- Dominant language
- PHP
- Stars
- 221
- Forks
- 18
- Avg merge
- 2h 11m
- Merged PRs (30d)
- 1
Description


C:\laragon\www\joyas\vendor\beganovich\snappdf/versions/1358778-Win_x64/chrome-win/chrome.exe --headless --disable-gpu --disable-translate --disable-extensions --disable-sync --disable-background-networking --disable-software-rasterizer --disable-default-apps --disable-dev-shm-usage --safebrowsing-disable-auto-update --run-all-compositor-stages-before-draw --no-first-run --no-margins --no-sandbox --print-to-pdf-no-header --no-pdf-header-footer --hide-scrollbars --ignore-certificate-errors --print-to-pdf=C:\Users\Compu Fire\AppData\Local\Temp\pdfF074.tmp.pdf C:\Users\Compu Fire\AppData\Local\Temp\htmF073.tmp.html 2>&1
Hi, I think it is due to the spaces in the windows path C:\UsersCompu Fire..., however I tried this way and it doesn't work either 'C:\UsersCompu Fire...'.
because the unlink also starts to fail
I tried the same in the unlink but it didn't work either, instead of unlink($path) I tried unlink('“$path”') and the other way around and it doesn't work either.
I remain attentive to any possible solution or if I have news I will propose a PR, Thank you very much.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported chrome.exe command and the PHP unlink($path) call, reproducing the failure on Windows with a path containing spaces. Trace how the temporary HTML and PDF paths are passed to chrome.exe and then removed; done means PDF generation and cleanup succeed for the shown paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100