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






Image to PDF conversion in browser without sending data to server







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








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








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