React.js Project to Export or Convert Multiple Images to PDF Document in Browser Using HTML5 & Javascript

 

 

 

About

 

Image to PDF conversion in browser without sending data to server

 

subhra74.github.io/img2pdf/

 

 

 

App.js

 

 

 

https://github.com/subhra74/img2pdf

 

 

Packaging React App into Single index.html File

 

 

We can use the gulp library to package all the libraries used in react app to a single index.html file which can be used directly inside

 

the browser. First of all install gulp like this using this command as shown below

 

 

 

 

Now create a .env file inside the root folder and copy paste the below code

 

 

.env

 

 

 

 

Now create a gulpfile.js inside the root directory and copy paste the following code

 

 

gulpfile.js

 

 

 

 

And now run the below commands to build the app

 

 

npm run build

 

 

npx gulp

 

 

Now you will get the minified index.html which you can upload to your server or localhost to run the app

 

 

index.html