How to Remove Floating Lines or Strokes from PDF Text
Question details
The user needs to remove thin lines or dash-like strokes that appear around text in a PDF document.

- Product
- Device & OS
- not provided
- Scenario
- Editing or viewing a PDF document where unwanted visual elements interfere with the text.
- Observed behavior
- Thin lines or strokes appear around the text but do not move with the text during editing, acting as separate artifacts or drawing objects.
Check if the issue is a simple visual glitch by opening the PDF in a different viewer or previewing it for print. If the lines disappear, it is a rendering issue; if they remain, they are embedded objects.
Delete Artifacts using PDF Editing Tools
Use your PDF editor to manually select and delete the strokes if they are saved as separate drawing objects or annotations.
In many cases, these floating marks are leftover annotations, stray shapes, or separate drawing objects created during the document's original design.
Open the PDF file in a professional editor like Adobe Acrobat and select the 'Edit PDF' tool from the right pane.
Hover over the floating line or stroke until your cursor changes, then click to highlight the individual object without selecting the text.
Press the 'Delete' or 'Backspace' key on your keyboard to remove the artifact, then save your document.

Adjust Font Rendering and Page Display Settings
Modify the smooth-line and text rendering settings in your PDF viewer to resolve visual artifacts caused by display glitches.
Easily Clean Up and Edit PDFs with WPS Office
WPS Office provides a comprehensive PDF editing suite that allows you to easily identify, select, and delete unwanted floating lines, shapes, and annotations without disrupting your original text layout.
- 1. Open your PDF: Launch WPS Office, click on 'Open', and select the PDF file containing the unwanted floating lines.
- 2. Enter Edit Mode: Navigate to the 'Edit' tab at the top of the screen and click on 'Edit Content' to enable full object selection.
- 3. Select and Delete: Click directly on the stray stroke or line to select it as an independent object, then press the Delete key to remove it.
- 4. Save Your File: Click the 'Menu' button and choose 'Save' or press Ctrl+S to save the cleaned-up PDF document.

Frequently Asked Questions
Why do thin lines appear on my PDF text?
These lines can be caused by leftover drawing objects, hidden annotation artifacts from previous edits, font-rendering glitches in your viewer, or conversion defects created when the original source file was exported to PDF.
How can I tell if a stroke is an actual object or just a display glitch?
Open the file in a different PDF viewer or check the print preview. If the line doesn't appear in the print preview or other software, it is likely a local screen rendering glitch rather than an embedded object.
Will flattening the PDF remove these floating strokes?
Flattening a PDF merges annotations and layers into the main document layer. If the strokes are annotations, flattening will permanently embed them into the background rather than removing them. It is highly recommended to delete unwanted artifacts before flattening the document.




