On Thu, Jul 04, 2024 at 12:58:10AM +0200, Celelibi wrote:
> I took a look at that xpdf script and I concur. It wouldn't be easy to
> keep the script posix-compliant and do the parsing correctly.

It would probably be simpler to do the job in xpopple itself and get rid
of the wrapper script -- I'd be happy to take a patch if someone wants
to have a first attempt at it.

In PDFCore::loadFile, you'd need to check for a known extension to the
filename, create a temporary file with mkstemp, and decompress to it
before creating the PDFDoc. It wouldn't be very hard to add a
"decompress .gz zcat" config command to set up a list of known
extensions with decompression commands, in much the same way that key
bindings work already.

Thanks,

-- 
Adam Sampson <a...@offog.org>                         <http://offog.org/>

Reply via email to