This is a Next.js project bootstrapped with create-next-app
.
Check this project live
Clone this project
git clone https://github.com/kheemchandra/pdf.git
cd pdf
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
This project is deployed on Railway for hosting. Since in Vercel we can not access filesystem here. But you can use other hosting platform where you can access app file-system.
This project uses PDFTron demo key. You will need to get one for running this project. Keep that secret key in env.local
for development and in production you can configure your web hosting platform setting to keep secret key.
Feedbacks are welcome.
Caution
⚠ Suitable for pdf file size < 10 MB