Subtract a path from a shape in Illustrator CC 2015


The pathfinder shape subtracts shapes from shapes fine e.g. the berry ellipse from the blue rectangle:

enter image description here

enter image description here

But it doesn't subtract paths from shapes at all, e.g. the purple line from the blue rectangle (NOTE: Before performing the subtraction I did move the line in front of the rectangle by using Arrange > Bring to Front, so that's not the issue):

enter image description here

The result is that nothing happens. I really want to trace a path and subtract it from the shape. I could set the stroke color to the background color, but when I save this as an .svg, I want the area to be transparent. Do I need to convert the path into a shape? The shape into a path? I'm new to illustrator so I'm really lost at the moment. Any help/suggestions are appreciated!

7/15/2016 9:52:00 PM

Accepted Answer

Pathfinder shape modes don't work well with open paths and completely ignore strokes. Since the actual path you're trying to subtract has 0 width, there is nothing for it to subtract.

If you want to subtract the purple stroke you need to outline the stroke first. Simply select the stroked path and go to Object → Path → Outline Stroke. That will turn your stroke in to an actual shape that will work with pathfinder the way you want it to.

7/15/2016 11:53:00 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow