Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

an error occurred while splitting pdf into single pages with the pdftk burst command #36

Open
Amor-Fairouz opened this issue Jan 28, 2020 · 1 comment

Comments

@Amor-Fairouz
Copy link

Amor-Fairouz commented Jan 28, 2020

 



static extractTextFromPdf(pdf, options) {
    console.log('entred to exctract');
    pdf = pathe.resolve(pdf)

    return new Promise((resolve, reject) => {
      const processor = pdfExtract(pdf, { ...options, clean: true }, (err) => {
        if (err) {
          reject(err);
        }
      });
      processor.on('complete', (data) => {
        resolve(data.text_pages);
        console.log('good');
      });
      processor.on('error', (err) => {
        console.log(' error extractTextFromPdf ');
        reject(err);
      });
    });
  }
@vogelino
Copy link

It seems the pdfk link on their website isn't providing the latest installation package. See this issue on StackOverflow.

After installing the latest version of pdfk provided in the StackOverflow issue the problem should be solved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants