A React Native library to detect and fill PDF forms
npm install react-native-pdf-form
import PdfForm from 'react-native-pdf-form';
// ...
PdfForm.detectFormFields('file:///path/to/form.pdf')
.then((fields) => {
console.log('Form Fields:', fields);
})
.catch((error) => console.error(error));
// Fill form fields
const fieldData = {
firstName: 'John',
agree: 'true',
};
PdfForm.fillFormFields('file:///path/to/form.pdf', fieldData)
.then((filledPdfPath) => {
console.log('Filled PDF saved at:', filledPdfPath);
})
.catch((error) => console.error(error));
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library