bvstone

GreenTools for G Suite (G4G) Updated to Allow Conversion of Files When Downloading

Posted:

GreenTools for G Suite (G4G) Updated to Allow Conversion of Files When Downloading

GreenTools for G Suite (G4G) has just been updated to allow the conversion of a file to another format when downloaded.

The file in your Google Drive must be in a Google Format for this functionality to work.  

Taken from https://developers.google.com/drive/v3/web/manage-downloads.

Google Doc Format Conversion Format Corresponding MIME type
Documents HTML text/html
  HTML (zipped) application/zip
  Plain text text/plain
  Rich text application/rtf
  Open Office doc application/vnd.oasis.opendocument.text
  PDF application/pdf
  MS Word document application/vnd.openxmlformats-officedocument.wordprocessingml.document
  EPUB application/epub+zip
Spreadsheets MS Excel application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
  Open Office sheet application/x-vnd.oasis.opendocument.spreadsheet
  PDF application/pdf
  CSV (first sheet only) text/csv
  TSV (first sheet only) text/tab-separated-values
  HTML (zipped) application/zip
Drawings JPEG image/jpeg
  PNG image/png
  SVG image/svg+xml
  PDF application/pdf
Presentations MS PowerPoint application/vnd.openxmlformats-officedocument.presentationml.presentation
  Open Office presentation application/vnd.oasis.opendocument.presentation
  PDF application/pdf
  Plain text text/plain
Apps Scripts JSON application/vnd.google-apps.script+json

Both the G4GDLOAD (G4G Download) and #g4g_downloadFile() functions have been updated to include these options.

You can find more information in the G4G Documentation.





Reply




© Copyright 1983-2024 BVSTools
GreenBoard(v3) Powered by the eRPG SDK, MAILTOOL Plus!, GreenTools for Google Apps, jQuery, jQuery UI, BlockUI, TinyMCE and running on the IBM i (AKA AS/400, iSeries, System i).