Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for professional graphic designers and non-designers trying to do their own graphic design. It's 100% free, no registration required.

I'm a programmer, not a designer. I'm handy with a graphics program as long as it doesn't require artistic abilities. However, I'm not sure about the correct terminology.

I'm working with Adobe Illustrator 9. I have several files, provided by client, that I need to prepare for use in a PHP PDF creator (TCPDF). I'm saving as version 3 .ai files.

One of the files has a line through the text. The text has been converted to outlines. The line is a stroke with no fill. A clipping mask is used to hide any excess line.

Here is what it should look like.

enter image description here

And this is what it looks like inside the PDF that TCPDF created.

enter image description here

Apparently, TCPDF doesn't understand the clipping mask. TCPDF supports up to version 8, but that makes a bigger file. I tried version 8, just to see, and get the same results.

So how do I convert this to individual paths that TCPDF can understand?

I could do it manually by cutting the line into pieces, outlining the stroke, and then adjusting the shape to fit the letters. But is there an easier way?

In this case, it probably wouldn't be too hard. But I am going to have to prepare a variety of graphics and will likely run into some more complicated masks.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Intersect the paths using the steps below. Note that menu locations are for Illustrator 9.

Steps

  • Do not release the clipping mask.
  • The text should already be converted to outlines and be one compound path.
  • Make a duplicate of this path, using the layers panel. Window > Show Layers
  • Move the duplicate path behind the line and out of the group. Hide the duplicate for now.
  • Select the line and outline the stroke. Object > Path > Outline Stroke
  • Select the group containing the two paths and intersect the paths.1 Effect > Pathfinder > Intersect
  • Reduce the points to just those for the intersection.2 Object > Expand Appearance
  • Unhide the duplicate letters.

Notes

  1. After intersecting the paths, this is the result. enter image description here

  2. After expanding the appearance, this is the result. enter image description here

Pathfinder Panel

Using the intersect button on the Pathfinder panel (Window > Show Pathfinder) seems to intersect the paths and expand appearance in one step, at least in Illustrator 9.

share|improve this answer
    
I don't have Ai 9, is there no merge function? That makes it much easier –  JohnB Dec 2 '13 at 5:19
    
Without releasing the clipping mask, merge gives me the exact same results as intersect, as do trim and crop. If I release the clipping mask, I get a variety of different results - none of them what I want. –  toxalot Dec 2 '13 at 7:44
    
Yes, you definitely should not release the compound clipping mask. For me in CS5, the difference is that with Merge I can select all of the artwork, but with Intersect I must only select the blue line and its compound clipping mask –  JohnB Dec 2 '13 at 7:57
    
If I select all the artwork and merge, then it ungroups everything and creates a bunch of empty paths. The empty paths correspond to the front shape in compound paths such A, D, O, etc. They have no fill and no stroke, but they increase the file size and clutter. –  toxalot Dec 2 '13 at 8:20
add comment

A simple Merge should do the trick:

Merge button

Expand all text and strokes, then click Merge.

Original Artwork (Outline view in the bottom window):

Illustrator screenshot

Merged Artwork:

Illustrator screenshot

share|improve this answer
    
If I select just the group that contains the clipping mask and compound clipping path, then merge gives me the same results as intersect. If I select all the artwork, merge ungroups everything and creates a bunch of empty paths. –  toxalot Dec 2 '13 at 8:23
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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