How to Delete One Line from a PDF Shape or Drawing
Question details
The user wants to remove a specific line or portion of a shape/drawing in a PDF without deleting the entire object.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Editing existing shapes, annotations, or freehand drawings inside a PDF document.
- Observed behavior
- Selecting the shape highlights the entire object, making it difficult to isolate and delete just a single line or segment.
Before editing, check whether the drawing or shape was created using a freehand pencil tool or inserted as a standard vector shape, as the deletion method depends on the object type.
Use the Eraser Tool for Freehand Drawings
If the shape was drawn using a Pencil or Freehand tool, you can use the Eraser to selectively remove parts of the stroke without affecting the rest of the drawing.
Freehand drawings in a PDF are typically treated as continuous ink paths. Because they aren't rigid vector shapes, a dedicated eraser tool can wipe away portions of the stroke.
Navigate to the Tools or Comment section in your PDF editor's top menu bar.
Look for the Pencil Eraser tool among the drawing and annotation options and click to select it.
Click and drag your cursor over the specific line or section of the drawing you want to remove. The highlighted portion will be deleted.

Recreate or Modify Standard Grouped Shapes
If the object is a complete standard shape (like a rectangle or polygon), it is treated as a single element and individual lines cannot be independently erased.
Easily Edit and Annotate PDFs with WPS Office
WPS PDF provides intuitive commenting, freehand drawing, and erasing tools, making it simple to modify specific lines and shapes in your documents. Edit text, images, and graphical elements smoothly within an easy-to-use interface.
- 1. Open your PDF: Launch WPS Office and open the PDF file containing the shape or drawing.
- 2. Access Drawing Tools: Click on the Comment tab on the top ribbon, then select the Draw drop-down.
- 3. Use the Eraser: Click the Eraser tool and drag it over any freehand line or annotation to instantly remove it.

Frequently Asked Questions
Why does clicking a line select the entire shape in my PDF?
In PDF formatting, standard shapes like squares, circles, or polygons are coded as a single, unified vector object rather than a collection of distinct lines. Clicking any part of the shape highlights the entire element.
Can I ungroup a shape in a PDF to delete just one side?
Standard PDF editors typically do not support ungrouping basic vector shapes into individual lines. To achieve this, you must delete the shape and draw the remaining borders manually using a Line tool.
Does the Pencil Eraser tool work on document text or images?
No, the Pencil Eraser tool is specifically designed to remove ink from freehand annotations drawn with the Pencil tool. To remove text or images, you need to use the Edit Text or Edit Image functions under the main Edit tab.
How do I edit shapes that were originally part of the source document?
To edit embedded graphics or shapes generated by the original software (like Word or Illustrator), switch your PDF software to a dedicated 'Edit PDF' mode. Select the object with the cursor to resize, move, or delete it entirely.




