OneNote on Windows 10 is a killer app, especially with touchscreen support. Since I've been using this to take my lecture notes at University, when I switched back to Linux I had to use the not-feature-complete online version. The feature I missed the most was the ability to include print-outs of a PDF file. Since the API seems to cover this feature anyway, and Microsoft released a good demo app, I decided to scratch my own itch, so I did some adjustments and added Google Drive upload support.
The current application allows you to login via OAuth2 to your Google and Live accounts and then choose a PDF file and select from the destination sections in your OneNote main notebook. It also uploads the PDF file to a Google Drive folder with the same name as the selected OneNote section. The app looks for the Drive folder inside a folder names
Slidedecks (it doesn't matter if it's in the root of your Drive or not, it will use the search function). This folder name is configurable in
You need to setup your hosts file and add a host name that will resolve to the IP address where you're running the app (or just upload the app on a server and use the server's host address), as Live and Google's OAuth2 server will need to redirect to that URL to send back the authentication token. On a Windows machine your
hosts file is located at
C:\Windows\System32\drivers\etc\hosts, on a Mac at
/private/etc/hosts and on a Linux machine at
- Get the app.
- You'll need to get your Live OAuth2 app credentials and Google OAuth2 app credentials and set the appropriate fields in
config.js. When setting the redirect URI, set it to the domain name of your web site or the host name you have set up in your
hostsfile. The path for Google authentication is
/drive-callbackand for Live authentication is
- The app will now run on port
3000on your desired host.
Adapted by Zisu Andrei (2016) based on a sample project from Microsoft Corporation (2014). Provided As-is without warranty. Trademarks mentioned here are the property of their owners.