If the 'Print to PDF' feature in Windows is producing 0-byte files or failing to respond, follow these troubleshooting steps to restore functionality.
1. Avoid Special Characters in Filenames
Windows often fails to process print jobs if the filename contains symbols like commas, #, %, or &. When the 'Save Print Output As' window appears, use a simple alphanumeric name (e.g., "TestFile") and save it directly to your Desktop.
2. Restart the Print Spooler Service
If the service is hung, it can prevent file creation:
- Press
Win + R, type services.msc, and hit Enter.
- Locate 'Print Spooler' in the list.
- Right-click it and select 'Restart'.
3. Disable and Re-enable the Feature
This acts as a soft reset for the Windows component:
- Press
Win + R, type optionalfeatures, and hit Enter.
- In the list, uncheck 'Microsoft Print to PDF' and click OK.
- Reboot your PC, repeat the steps, and re-check the box to turn it back on.
4. Set as Default Printer
Sometimes, setting the feature as the default device resolves redirection issues.
- Windows 11: Settings > Bluetooth & devices > Printers & scanners > Select 'Microsoft Print to PDF' > Click 'Set as default'.
- Windows 10: Control Panel > View devices and printers > Right-click 'Microsoft Print to PDF' > Select 'Set as default printer'.
5. Reinstall the Printer Driver
If the port assignment is corrupted, you can re-add it manually:
- Open 'Devices and Printers' or 'Printers & scanners' via Control Panel.
- Remove the existing 'Microsoft Print to PDF' device.
- Select 'Add device' or 'Add a printer'.
- Choose 'The printer that I want isn’t listed' and select 'Add a local printer or network printer with manual settings'.
- Select 'PORTPROMPT: (Local Port)' as the existing port.
- Select 'Microsoft' as the manufacturer and 'Microsoft Print to PDF' as the printer. Follow the prompts to finish the installation.