<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - pdftocairo - Flag to disable text drawing"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=65877">65877</a>
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>poppler-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>pdftocairo - Flag to disable text drawing
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ryan.fox@upverter.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>utils
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=80975" name="attach_80975" title="Patch to add a flag to disable text drawing. Based on the code in the 0.23.2 release.">attachment 80975</a> <a href="attachment.cgi?id=80975&action=edit" title="Patch to add a flag to disable text drawing. Based on the code in the 0.23.2 release.">[details]</a></span>
Patch to add a flag to disable text drawing. Based on the code in the 0.23.2
release.

I needed to hack pdftocairo to allow me to disable the text drawing, and I
thought it could be something other people might benefit from, so I'm
presenting a tiny patch to add a flag for it.

Background: Cairo's SVG backend doesn't draw text as text; it creates shapes
for each letter. (See <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Make Text in generated SVG file selectable"
   href="show_bug.cgi?id=38516">bug 38516</a>) I'm using the output from pdftocairo for the
structure of a PDF, rather than the visual representation, so the actual text
is important to me, as well as all of the shapes. I can get sufficient text
information from `pdftohtml -xml` for this. To prevent losing non-letter
glyphs, I need to prevent the drawing of the text rather than just discarding
all of the glyphs.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>