Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-pdf-to-image

ajumal-ashraf-dev1.1kMIT3.3.0TypeScript support: included

A react native plugin to convert PDF pages to images

react-native, ios, android, pdf-converter, react-native-pdf, pdf-to-png

readme

react-native-pdf-to-image

Installation

npm install react-native-pdf-to-image

Usage

import { convert, convertB64 } from 'react-native-pdf-to-image';

const uri = 'file:///data/.........' // Any PDF file uri
const images = await convert(uri);   // { outputFiles: [' /* image file path in cache */'] }

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT