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.