How to Remove Lines Around Images in a Word to PDF Conversion
Question details
The user is experiencing unexpected lines or ghost borders around images after converting a Word document to PDF and wants to remove them without losing the document's bookmarks.

- Product
- Microsoft Word / PDF
- Device & OS
- not provided
- Scenario
- Converting a Microsoft Word document containing images or figures into a PDF format.
- Observed behavior
- Ghost borders or artifact lines appear around figures and images in the resulting PDF, which can affect on-screen viewing even if they disappear during printing.
Before changing any export settings, try zooming in and out of your PDF or doing a test print. These lines are often mere display artifacts in the PDF viewer rather than permanent borders on the images.
Adjust PDF Export Options in Word
Modifying the built-in PDF export settings in Microsoft Word can help eliminate rendering artifacts while keeping your bookmarks intact.
By tweaking the optimization settings during the 'Save As' process, you can force the export engine to handle image compression and formatting differently, reducing the chance of ghost lines appearing.
Click 'File' > 'Save As' and choose 'PDF' from the file format dropdown menu.
Click on the 'Options...' button located below the file format dropdown before saving.
Ensure that the box for 'Create bookmarks using' is checked (select 'Headings' or 'Word bookmarks') to maintain navigation links.
Select 'Optimize for: Standard (publishing online and printing)' to ensure the best graphic rendering.
Click 'OK', save the file, and open it in your PDF viewer to check if the image lines are resolved.
Use the 'Print to PDF' Feature
Using a print workflow bypasses the native export engine and often successfully removes ghost borders.
Remove Image Transparency Before Exporting
Transparent backgrounds or vector graphics in Word can cause rendering lines due to how PDFs process overlapping elements.
Use WPS Office to Export Clean, Bookmark-Rich PDFs
WPS Office provides a highly optimized PDF export engine that seamlessly prevents image artifacts and ghost borders while retaining all document outlines, bookmarks, and layouts perfectly.
- 1. Open Your Document: Launch WPS Writer and open your original Word document (.docx).
- 2. Access PDF Export: Go to the 'Tools' tab on the top ribbon and click on the 'Export to PDF' button.
- 3. Configure Bookmark Settings: In the export dialog, expand the advanced options and verify that the 'Export bookmarks' feature is checked.
- 4. Generate the PDF: Click 'Export' to generate a clean, high-quality PDF document free of rendering artifacts.

Frequently Asked Questions
Why do these lines only appear on my screen but not when I print the PDF?
These are usually 'stitching lines' or rendering artifacts caused by how the PDF viewer software draws overlapping transparent objects and vectors on a screen. Physical printers rasterize the page differently, which hides these digital display errors.
Can I fix these ghost borders just by changing my PDF viewer settings?
Yes, in many cases. If you are using Adobe Acrobat or a similar viewer, you can go to Preferences > Page Display, and try unchecking options like 'Smooth line art' or 'Smooth images'. This often hides the display artifacts without needing to alter the actual file.
How can I keep bookmarks if I have to use the Print to PDF method?
Unfortunately, 'Print to PDF' relies on standard printer drivers that do not recognize document structure tags. To keep bookmarks while fixing artifacts, you must use a 'Save As' or native 'Export' function, or use a dedicated PDF editing software to rebuild the bookmarks manually after printing.
Does the original image format affect PDF conversion artifacts in Word?
Yes. Image files with transparent backgrounds (like PNGs) or vector graphics (like EMF or SVG) are much more prone to generating rendering artifacts when converted to PDF. Replacing them with flattened JPEG images often solves the issue.




