safirmotiwala / google-drive-api-doc-to-pdf-nodejs

Converts any office documents to pdf using the google drive API in NodeJs

Repository from Github https://github.comsafirmotiwala/google-drive-api-doc-to-pdf-nodejsRepository from Github https://github.comsafirmotiwala/google-drive-api-doc-to-pdf-nodejs

google-drive-api-doc-to-pdf-nodejs

This project converts any office documents to pdf using the google drive API. It first uploads the doc on the drive and then exports it in the pdf format.

Steps

  1. Follow the steps from here (https://dev.to/kamalhossain/google-drive-api-in-node-js-3mnm) to get crediantials.json and tokens.json
  2. Install the libraries
npm install
  1. Add the document in the root folder and change the name of the file in the code (filePath variable)
  2. Run the API
node server.js
References

About

Converts any office documents to pdf using the google drive API in NodeJs

License:MIT License


Languages

Language:JavaScript 100.0%