i have lot of docx files ( ~ 72 ) , mimetype :
application/vnd.openxmlformats-officedocument.wordprocessingml.document
and want convert of them googledocument can edit them online need them
application/vnd.google-apps.document
is possible ? i've tried blob nothing works , there way create new google doc same format ?
got .
var docx = driveapp.getfilebyid("###"); var newdoc = drive.newfile(); var blob =docx.getblob(); var file=drive.files.insert(newdoc,blob,{convert:true});
the {convert:true}
convert .
ps : need set document name since it's not included in teh blob
documentapp.openbyid(file.id).setname(docx.getname());
Comments
Post a Comment