width set to 0 for vertical text
Submitted by perrotton
Assigned to poppler-bugs
Description
Created attachment 128140 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)
Attachment 128140, "pdf with vertical text":
S002P0C0.pdf