Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plutext/docx4j-cloud-googledrive
docx4j integration with Google Drive
https://github.com/plutext/docx4j-cloud-googledrive
Last synced: about 1 month ago
JSON representation
docx4j integration with Google Drive
- Host: GitHub
- URL: https://github.com/plutext/docx4j-cloud-googledrive
- Owner: plutext
- License: apache-2.0
- Created: 2014-03-15T02:54:58.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-16T09:28:53.000Z (almost 11 years ago)
- Last Synced: 2024-10-16T14:53:51.501Z (3 months ago)
- Language: Java
- Size: 141 KB
- Stars: 4
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
docx4j-cloud-GoogleDrive
========================docx4j integration with Google Drive
This project demonstrates:
* Upload a wordMLPackage (or presentationML or spreadsheetML pkg) to Google Drive as a docx
* Download a file from Google Drive as a docx4j WordprocessingMLPackage
* Convert a WordprocessingMLPackage to the specified output format, using Google DriveGetting started: Clone the project, and set it up using Maven in your IDE.
Enabling the Drive API: set up a project and application in the Developers Console:
* press the red "CREATE NEW CLIENT ID" button, then choose application type "Installed Application"; I then chose subtype "Other"
* hit the "Download JSON" button; save it as client_secret.json in your project dirNow you can run the classes in src/main/java, for example: Docx4jUploadToGoogleDrive
It ought to say something like:
Please open the following URL in your browser then type the authorization code:
https://accounts.google.com/o/oauth2/auth?access_type=online&client_id=622239...
Paste the auth code into your IDE's console (System.in, probably the same place which displayed the above message)
then press enter. If you aren't logged into your Google account in your browser, its at this point that you'll be
asked to log in.