/pdf_counter

This JavaScript script counts and displays the total number of pages in all PDF files within a folder.

Primary LanguageJavaScriptMIT LicenseMIT

PDF Counter

This is a simple JavaScript script that reads all the PDF files from a folder and counts the number of pages in each PDF. It then displays the total number of pages in the console.

Prerequisites

Before running this script, make sure you have the following installed:

  • Node.js

Installation

  1. Clone this repository to your local machine.

  2. Navigate to the project directory.

  3. Install the dependencies by running the following command:

    npm install

Usage

  1. Place all the PDF files you want to count the pages of in a folder.

  2. Update the folderPath variable in the index.js file with the path to your folder.

  3. Run the script by executing the following command:

    node index.js

    The script will read all the PDF files in the specified folder, count the pages, and display the total number of pages in the console.

License

This project is licensed under the MIT License.