Pr end of file error in firefox: how to fix it
In this article
The "pr end of file" error in Firefox usually appears when the browser tries to print a page or generate a PDF, and it means the print job was interrupted or the data stream ended unexpectedly. To fix it, restart Firefox, clear your print queue, and reset the print settings — if that fails, disable your printer's driver or use Firefox's built-in "Save as PDF" option instead.
What Causes the "pr end of file" Error?
This error is not a Firefox bug in the traditional sense; it's a communication failure between Firefox and your operating system's printing subsystem. The "pr" prefix typically refers to the print spooler or the printer driver, and "end of file" means the data stream was cut off before the document was fully transmitted. Common triggers include:
- A corrupted print spooler service (common on Windows)
- Outdated or incompatible printer drivers
- Firefox's built-in PDF viewer sending malformed data
- Network printer timeouts or connection drops
- Browser extensions that interfere with printing
In many cases, the error appears when trying to print a PDF file directly from Firefox's viewer, rather than from a regular webpage. The viewer sometimes fails to pass the complete file to the system printer, especially if the PDF is large or has complex embedded fonts.
Quick Fixes to Try First
Before diving into system-level changes, try these simple steps — they resolve the issue for most users:
- Restart Firefox completely. Close all windows, then reopen the browser. This clears any temporary print state.
- Clear the print queue. On Windows, open "Devices and Printers," right-click your printer, and select "See what's printing." Cancel all pending jobs. On macOS, open "System Settings > Printers & Scanners," select the printer, and click "Open Print Queue" to clear it.
- Use Firefox's "Save as PDF" instead of your physical printer. In the print dialog, choose "Save as PDF" as the destination. This bypasses the driver entirely and often works when regular printing fails.
- Disable hardware acceleration. Go to Firefox Settings > General > Performance, uncheck "Use recommended performance settings," then uncheck "Use hardware acceleration when available." Restart Firefox and try printing again.
Resetting Firefox's Print Settings
Sometimes Firefox's internal print settings become corrupted. To reset them without losing your bookmarks or passwords:
- Type
about:supportin the address bar and press Enter. - Click the "Refresh Firefox" button in the top-right corner. This resets the browser to its default state while keeping your personal data.
- After the refresh, try printing again. You may need to reconfigure your default printer in Firefox's settings.
If you prefer not to refresh the whole browser, you can manually reset the print settings by going to about:config, searching for print, and resetting any preferences that have been modified. Look for entries like print.printer_* and right-click to reset them.
Fixing the Windows Print Spooler
On Windows, the print spooler is a common culprit. If the spooler service is stuck or corrupted, Firefox will receive an "end of file" error. To restart it:
- Press
Win + R, typeservices.msc, and press Enter. - Scroll to "Print Spooler." Right-click it and select "Restart."
- If the service is not running, right-click and choose "Start."
- After restarting, try printing again. If the error persists, you may need to clear the spooler's temporary files: stop the service, delete all files in
C:\Windows\System32\spool\PRINTERS, then restart the service.
Note that you may need administrator privileges to do this. If the spooler keeps crashing, it could be due to a faulty printer driver — update or reinstall the driver from the manufacturer's website.
Printer Driver Issues and Alternatives
Outdated or incompatible printer drivers are the second most common cause. Check your printer manufacturer's website for the latest driver for your operating system version. If you're using a network printer, try connecting it directly via USB to see if the error disappears — that would confirm a driver or network issue.
If you don't need a physical printout, consider these alternatives:
- Save as PDF: Firefox's built-in option is reliable and doesn't involve drivers.
- Print to a different PDF creator: Some third-party PDF printers (like those from Adobe or Microsoft) may work when the system driver fails.
- Use a web-based print service: If you're trying to print a document, you can upload it to a cloud printing service, but that's not always practical.
Common Misconception: It's a Firefox Bug
Many users assume the error means Firefox is broken, but it's rarely a browser bug. The error message is generated by the operating system's print pipeline, not by Firefox itself. Firefox simply sends the print data; if the spooler or driver fails to handle it, you get an "end of file" error. This is why restarting the spooler or updating drivers often fixes it.
Another misconception is that the error is related to the file you're printing. While a corrupted PDF can cause issues, the error typically appears across different documents, indicating a system-level problem.
Preventing the Error in the Future
To minimize the chance of encountering this error again:
- Keep your printer drivers updated.
- Regularly clear your print queue, especially after a failed print job.
- Use Firefox's "Save as PDF" for documents you don't need on paper.
- If you use a network printer, ensure it's on a stable connection and not going to sleep mid-print.
- Disable browser extensions that might interfere with printing, such as ad blockers or PDF tools, and test printing in Firefox's Safe Mode (Help > Troubleshoot Mode).
Frequently Asked Questions
Why do I only get this error with Firefox and not other browsers?
Other browsers may use different print pipelines or handle errors differently. Firefox uses its own PDF viewer, which can sometimes send data in a way that triggers the spooler error. Chrome, for example, uses a different printing architecture and may not exhibit the same issue.
Can I fix this by reinstalling Firefox?
Reinstalling Firefox can help if the browser's profile is corrupted, but it's not a guaranteed fix. The error is often system-related, so reinstalling the browser alone may not solve it. Try the other steps first, and only reinstall as a last resort.
Does this error occur on macOS or Linux?
Yes, but it's less common. On macOS, the error may appear as "Printing failed" or "Unable to print." The fix is similar: reset the print queue, update drivers, or use "Save as PDF." On Linux, it often relates to CUPS (the printing system) — restarting the CUPS service can help.
Will clearing the print queue delete my pending documents?
Yes, clearing the print queue will cancel all pending print jobs. Make sure you don't have important documents queued that you need to print. If you do, try to print them first or save them as PDFs before clearing.
Is there a way to print without the error using Firefox's troubleshooting mode?
Yes. Open Firefox's Help menu and click "Troubleshoot Mode" (or restart with add-ons disabled). This disables extensions and hardware acceleration. If printing works in this mode, an extension or acceleration setting is the cause. You can then disable problematic extensions one by one.