node-poppler icon indicating copy to clipboard operation
node-poppler copied to clipboard

Allow for each function's bin path to be seperately defined

Open Fdawgs opened this issue 2 years ago • 0 comments

Prerequisites

  • [X] I have written a descriptive title

  • [X] I have searched existing feature requests to ensure it has not already been proposed

  • [X] I agree to follow the Code of Conduct that this project adheres to

Description

At present, all functions use the popplerPath property for their bin path.

This should be broken down to an individual level so that it can be modified if needs be:


const { Poppler } = require('node-poppler');

const poppler = new Poppler('/usr/bin');

poppler.pdfToTextPath = '/totallydifferentpath/bin';
poppler.pdfToHtmlPath = '/anotherpath';

await poppler.pdfToText(new Buffer('bleh'));

Fdawgs avatar Mar 12 '24 18:03 Fdawgs