Fix Excel Cell Shading Disappearing When Exporting to PDF
Question details
Users are experiencing an issue where row or cell shading applied in a spreadsheet is lost after exporting the file to a PDF format.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Converting or exporting an Excel worksheet containing shaded rows and colored cells into a PDF document.
- Observed behavior
- The resulting PDF document fails to display the cell shading and fill colors, despite the formatting being clearly visible in the original spreadsheet.
Before proceeding, ensure that your printer driver is up to date, as Excel relies on print drivers to generate PDF previews and outputs. Additionally, verify that your printer is not set to print in black and white by default.
Verify Page Setup and Disable Draft Quality
Ensuring that 'Draft quality' or 'Black and white' printing is disabled in your Page Setup often restores missing colors and shading in PDF exports.
Excel uses your print settings to generate PDF files. If settings designed to save printer ink are enabled, Excel will automatically strip out background shading during the PDF conversion.
Go to the 'Page Layout' tab on the Excel ribbon and click the small diagonal arrow (dialog box launcher) in the bottom right corner of the 'Page Setup' group.
In the Page Setup dialog box, click on the 'Sheet' tab located at the far right.
Under the 'Print' section, make sure that both the 'Black and white' and 'Draft quality' checkboxes are completely unchecked.
Ensure your 'Print area' encompasses all the rows and columns with cell shading. Click 'OK' to save the settings, then try exporting the document to PDF again.

Use Excel's Built-in 'Save As PDF' Feature
Third-party PDF printers or external add-ins can sometimes fail to process complex cell formatting. Using Excel's native PDF export tool ensures better compatibility with cell shading.
Troubleshoot Conditional Formatting and File Corruption
Complex conditional formatting rules or unsupported fill effects might not translate correctly to PDF. Simplifying the formatting or transferring data to a new sheet can resolve underlying glitches.
Export Spreadsheets to PDF Flawlessly with WPS Office
If Microsoft Excel continues to drop your cell shading during PDF conversion, you can open your spreadsheet in WPS Office and use its highly optimized Export to PDF tool. It preserves all cell colors, row shading, and complex formatting exactly as they appear on your screen.
- 1. Open Your Spreadsheet in WPS: Download and install WPS Office, then open your problematic .xlsx file in the WPS Spreadsheet application.
- 2. Verify Formatting: Check the spreadsheet to ensure that all your row shading and cell colors display correctly on the screen.
- 3. Access PDF Export: Click on the 'Menu' button in the top left corner, navigate to 'Export to PDF', and select it.
- 4. Export the Document: Adjust your export settings in the prompt, ensuring the correct sheets and layout are selected, then click the 'Export' button to generate your flawless PDF.

Frequently Asked Questions
Why does my Excel file look different when saved as a PDF?
Excel relies on the active printer's driver to calculate page layouts and render PDF files. If the printer settings have 'Draft quality' or 'Black and white' enabled, or if the driver itself is outdated, the resulting PDF may omit background colors, shading, and certain graphic elements.
Can conditional formatting cause cell shading to disappear in PDFs?
Yes. Highly complex conditional formatting rules, custom gradients, or unsupported fill effects may fail to render correctly during the conversion process. Try simplifying the shading to standard solid colors to see if it resolves the rendering issue.
How do I ensure my shaded rows are included in the PDF export boundary?
Go to the 'Page Layout' tab, highlight the specific cells you want to export, click 'Print Area', and select 'Set Print Area'. Always press Ctrl + P to view the 'Print Preview' before exporting to verify that the shading is visible within the designated page boundaries.




