title: Converting vector fill patterns to explicit objects
body: <p>I'm creating some masks for photolithography that have arrays of 50 µm features across a 4"x4" span.</p>
  
  <p>An SVG file that represents my mask objects implicitly as a fill pattern is trivial:</p>
  
  <pre><code>&lt;!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"&gt;
  &lt;svg width="4in" xmlns="http://www.w3.org/2000/svg" version="1.1" height="4.25in"&gt;
  &lt;defs&gt;
    &lt;pattern height="0.100000mm" width="0.100000mm" patternUnits="userSpaceOnUse" y="0" x="0" id="tile"&gt;
      &lt;rect y="0" width="0.100000mm" fill="black" x="0" height="0.100000mm" /&gt;
      &lt;rect y="0.025000mm" width="0.050000mm" height="0.050000mm" x="0.025000mm" fill="white" /&gt;
    &lt;/pattern&gt;
  &lt;/defs&gt;
  
  &lt;rect y="0" width="4in" height="4in" x="0" fill="url(#tile)" /&gt;
  &lt;text font-size="6pt" y="4.1in" x="0.1cm" font-family="Consolas"&gt;50 µm squares, 50 µm pitch; tds 3/6/13&lt;/text&gt;
  
  &lt;/svg&gt;
  </code></pre>
  
  <p>Our printing provider says they can take EPS files. Doing a round trip from SVG to EPS in Illustrator works fine, but the generated EPS file still has an implicit representation of the mask features, and the print shop says they can't see anything. I think that I need to have an explicit representation of each of the features instead of using a fill pattern.</p>
  
  <p>What's the best way (with Postscript?) to convert a vector fill pattern into explicitly rendered vector objects? I could generate the SVG by hand but gosh, that would be a honking huge text file.</p>