[Poppler-bugs] [Bug 98814] New: width set to 0 for vertical text

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 22 08:44:39 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98814

            Bug ID: 98814
           Summary: width set to 0 for vertical text
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pdftohtml
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: jeanphilippe.perrotton at gmail.com

Created attachment 128140
  --> https://bugs.freedesktop.org/attachment.cgi?id=128140&action=edit
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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20161122/04d4e9e7/attachment.html>


More information about the Poppler-bugs mailing list