electrovir / pdf-text-reader

Dead simple pdf text reader
https://electrovir.github.io/pdf-text-reader/
Creative Commons Zero v1.0 Universal
33 stars 4 forks source link

`allOptions` input doesn't do anything #12

Closed electrovir closed 6 months ago

electrovir commented 6 months ago

this input: https://github.com/electrovir/pdf-text-reader/blob/c33bcfc4d698552bb064f233e3c5774292e106e6/src/read-pdf.ts#L59

electrovir commented 6 months ago

fix in v4 as well

electrovir commented 6 months ago

Fixed in v5: https://www.npmjs.com/package/pdf-text-reader/v/5.1.0 Fixed in v4: https://www.npmjs.com/package/pdf-text-reader/v/4.1.0

Also, allOptions was renamed to options.

electrovir commented 6 months ago

@AaronSterlingGENEICD does v4.1 work well for you? (regarding https://github.com/electrovir/pdf-text-reader/issues/11#issuecomment-2100611217)

AaronSterlingGENEICD commented 6 months ago

Yes thank you! The code below works fine.

const pdfText = await readPdfText({
      data: atob(base64string),
      options: {isEvalSupported: false}
    });