<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - width set to 0 for vertical text"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98814">98814</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>width set to 0 for vertical text
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>poppler
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>pdftohtml
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>jeanphilippe.perrotton@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=128140" name="attach_128140" title="pdf with vertical text">attachment 128140</a> <a href="attachment.cgi?id=128140&action=edit" title="pdf with vertical text">[details]</a></span>
pdf with vertical text

I'm trying to transform a pdf to html file using 'pdftohtml' that contain
japanese langage.
Everything is fine with horizontal text but each generated div for vertical
text has width set to 0.

I tried to fix this and I have found this in following function
GfxCIDFont::getNextChar() :

...
  // vertical
  } else {
    w = 0;
...

and width doesn't seem to be updated later. So I have tried to do like in
horizontal mode :

...
  // vertical
  } else {
    w =getWidth(cid);
...

the result is good, all my divs have a width. Is it the right way ? 
(there is a pdf exemple on attachment)</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>