react-native-pdf-form

1.4.0 • Public • Published

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

/react-native-pdf-form/

    Package Sidebar

    Install

    npm i react-native-pdf-form

    Weekly Downloads

    0

    Version

    1.4.0

    License

    MIT

    Unpacked Size

    23.1 kB

    Total Files

    23

    Last publish

    Collaborators

    • saminshams