Answers for "apps script convert docx to doc"

0

apps script convert docx to doc

function myFunction() {
  var docx = DriveApp.getFilesByName('Dummy.docx').next();
  var newDoc = Drive.newFile();
  var blob =docx.getBlob();
  var file=Drive.Files.insert(newDoc,blob,{convert:true});
  DocumentApp.openById(file.id).setName(docx.getName());  
}
Posted by: Guest on September-17-2020

Browse Popular Code Answers by Language