1.0.1 • Published 1 year ago

react-native-my-pdf-module v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

react-native-my-pdf-module

A React Native library for extracting text from a PDF.

Installation To install react-native-my-pdf-module, run the following command:

npm install react-native-my-pdf-module

Usage To use react-native-my-pdf-module, import it into your code and call the extractText function:

import MyPDFModule from 'react-native-my-pdf-module';

async function extractText() {
  try {
    const text = await MyPDFModule.extractText('path/to/file.pdf');
    console.log(text);
  } catch (e) {
    console.error(e);
  }
}

extractText();

The extractText function takes a file path as a parameter and returns a promise that resolves to the extracted text.

Compatibility

react-native-my-pdf-module is compatible with React Native 0.61.5 and higher.

License react-native-my-pdf-module is released under the MIT license. See LICENSE for details.

I hope this helps! Let me know if you have any other questions.