Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
poppler
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 614
    • Issues 614
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 40
    • Merge Requests 40
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • poppler
  • poppler
  • Issues
  • #339

Closed
Open
Opened Nov 22, 2016 by Bugzilla Migration User@bugzilla-migration

width set to 0 for vertical text

Submitted by perrotton

Assigned to poppler-bugs

Link to original bug (#98814)

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

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: poppler/poppler#339