laravel-dompdf
laravel-dompdf copied to clipboard
Stuck Generating PDF: Missing File Causes Timeout
Description When attempting to generate a PDF using the current implementation, the process gets stuck indefinitely. After investigation, it appears that the underlying cause is a missing file required by the PDF generation engine (e.g., HTML template or asset). Instead of failing fast or throwing a clear error, the system enters a timeout state without completing or returning feedback.
To Reproduce
- Trigger PDF generation
- Ensure the HTML/template file or required asset is missing or unavailable.
- Observe that the process takes very long time and does not return a response or error (it cause PHP timeout) .
Expected behavior PDF generation should fail fast with a clear error message (e.g., FileNotFoundException).