Fix Gray Lines and Boxes When Printing or Saving Word to PDF
Question details
The user needs to prevent shaded text from appearing as thick gray lines or unexpected boxes when printing a Word document or saving it as a PDF.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Printing a document or exporting a document containing shaded text to PDF.
- Observed behavior
- Gray text shading prints as a thick line, and unexpected gray boxes can appear in printed output or PDFs.
Identify the shaded text and check whether the problem occurs with File > Save As > PDF, physical printing, or both. Note which output method produces the lines or boxes so you can compare it with the workarounds.
Print the Word document to PDF instead of using Save As
Try the operating system's PDF printing process when Word's PDF export renders text shading incorrectly.
In Word, open the affected document and select File > Print.
On Windows, select Microsoft Print to PDF as the printer if available. On macOS, open the PDF menu in the print dialog and choose Save as PDF.
Complete the print or save dialog, then open the PDF and check the shaded text for gray lines or boxes.

Place shaded text in a table cell or text box
Use a container for the shaded text if ordinary text shading renders incorrectly.
Report the rendering issue to Microsoft
Send feedback if Word continues to produce gray lines or boxes after you test the workarounds.
Try WPS Writer for Word Documents and PDF Output
WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Word documents. Its DOCX compatibility makes it easy to move documents over and try a separate PDF export or printing workflow; it does not fix the underlying Microsoft Word issue.

Frequently Asked Questions
Why does shaded text become a gray line in my PDF?
It may be a rendering issue in Word's PDF export, particularly when ordinary text has shading. Try File > Print and select a PDF output option, then compare the result with the PDF created through Save As.
How do I save a Word document as a PDF through the print dialog?
Select File > Print. On Windows, choose Microsoft Print to PDF if available; on macOS, use the PDF menu in the print dialog and choose Save as PDF.
Can a table cell prevent the gray shading problem?
It may help. Select Insert > Table, move the shaded text into a cell, and test the print or PDF output. Check the layout afterward because the table can change spacing.
Where can I report unexpected gray boxes in Word?
Use Help > Feedback or the feedback option in your version of Word. Include the output method, steps to reproduce the problem, and a screenshot if possible.




