Skip to content

GitLab

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

Closed
Open
Created 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
Time tracking