Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PdfDatabase Rendering Frontend Code #1 #5

Merged
merged 3 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Pdf_Library/PDFDatabaseRenderer/frontend-pdfrender/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
44 changes: 44 additions & 0 deletions Pdf_Library/PDFDatabaseRenderer/frontend-pdfrender/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# PdfRender Frontend

This codebase allows user to render pdf data which come from dataBase on the UI with options to show and hide the PDF. The project is built using React and utilizes library to handle PDF rendering.

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Features](#features)
- [Demo](#demo)

## Installation

1. Clone the repository:
```bash
git clone Github Repo

2. Install the dependencies:
``` bash
npm install

3. Start the development server:
``` bash
npm start
## Usage
- Upload a PDF file using the provided upload form.
- The uploaded PDF will be rendered on the UI.
- Use the show/hide button to toggle the visibility of the PDF.


## Features
- Render PDF files using react-pdf.
- Toggle the visibility of the PDF.



## Demo

![Upload PDF](./screenshots/Screenshot%202024-07-01%20172551.png)


![View PDF](./screenshots/Screenshot%202024-07-01%20172604.png)


Loading