Skip to content

allenaapp/react-native-pdf-form

Repository files navigation

react-native-pdf-form

A React Native library to detect and fill PDF forms

Installation

npm install react-native-pdf-form

Usage

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));

Contributing

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

License

MIT


Made with create-react-native-library

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published