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 613
    • Issues 613
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 39
    • Merge Requests 39
  • 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
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • poppler
  • poppler
  • Issues
  • #1008

Closed
Open
Opened Dec 15, 2020 by Elias Gabriel Amaral da Silva@dlight

Extracting pdftotext -layout functionality into library

Hello, I need a function that returns a string with whatever pdftotext outputs when given the -layout option, but without having to run the executable. I want to call Popper's APIs myself (eventually I will package it as a Rust crate and publish it to crates.io, but that's another matter).

I'm seeing that pdftotext uses internal Popper APIs, in special TextOutputDev.h: it calls new TextOutputDev(filename, true, ...) to build the object that prints text with physical layout. I'm tempted to go ahead and just call this, but the readme advises against that.

Is this functionality available in a stable API? I would prefer to use poppler-glib if possible, but either one is acceptable.

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#1008