How do I cut or trim off the protruding line drawn using a pen tool so that it confirms the shape of the rectangle?

enter image description here

  • 2
    Look up how to use clipping masks – Billy Kerr Aug 4 '18 at 7:50
  • You cannot use the pen tool to cut a diagonal stroke to fit a 90º direction. Use the answer of @Dodie Eslava or the Billy Kerr comment. – LeoNas Oct 3 '18 at 14:09

Select the two layer then ude divide tool. Make sure the given line is not stroke. If the line is stronke expand it first. enter image description here

Select the unwanted path then delete.

enter image description here

| improve this answer | |
  • That's not the best way, and it's not exactly what's being asked... There are other ways to do it without having to transform the path in a shape. – Luciano Sep 3 '18 at 13:21
  • Why dont you give your own answer then. There are many options to do it and i just give what i have. Give yours also if you want. You're good only in commenting and yet you offer no solution. – Dodie Eslava Oct 18 '18 at 12:01
  • Chill out, I'm not personally attacking you here. There is one other answer (which I upvoted) and a comment with a different solution, I don't need to add another one just to say the same thing. – Luciano Oct 18 '18 at 12:07
  • Select both the rectangle and inner shape
  • Grab the Shape Builder Tool
  • Hold down the Option/Alt key
  • Click-drag across the part of the line you want to remove.
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.