This project is a React application that allows users to upload and resize PDF files. Users can choose from three different size options: normal (96dpi), small (60dpi), and very small (30dpi). The application is styled to replicate the design of the compressjpeg project.
resizepdf-react-app
├── public
│ └── index.html # Main HTML file for the React application
├── src
│ ├── App.js # Main component that manages application state
│ ├── components
│ │ ├── ResizeOptions.js # Component for selecting resize options
│ │ └── PdfUploader.js # Component for uploading PDF files
│ ├── styles
│ │ └── compressjpeg-style.css # CSS styles for the application
│ └── utils
│ └── pdfResizer.js # Utility for resizing PDF files
├── package.json # npm configuration file
└── README.md # Project documentation
To get started with the Resize PDF React application, follow these steps:
-
Clone the repository:
git clone <repository-url> cd resizepdf-react-app -
Install dependencies:
npm install -
Run the application:
npm start -
Open your browser: Navigate to
http://localhost:3000to view the application.
- Use the PdfUploader component to upload your PDF files.
- Select the desired size option using the ResizeOptions component.
- The application will process the PDF and resize it according to the selected option.
Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
This project is licensed under the MIT License. See the LICENSE file for more details.