Taking single sheet Google spreadsheet, making it into a pdf and placing it in Drive -


i've been hours @ trying every way , kind of function might result in , i'm getting , frustrated. code (stripped bare essentials):

function alone() {     try {       spreadsheetfile = docslist.getfilebyid("key google spreadsheet").getas('application/pdf');     }     catch (e) {       logger.log ("catched something: "+e+"\n"+e.stack);     }       createfile('test file', content, 'application/pdf'); } 

getting dreaded "unexpected exception upon serializing continuation" , not going catch, nothing logged. i've used various methods tagged onto end of "getas", getblob(), everything. i'm guessing part of google code that's nogga, nogga, noggonna work here anymore.

your syntax wrong... try , work : (the sheet in example has single cell value "empty sheet" , shared)

function alone() { try {   var spreadsheetfile = docslist.getfilebyid("0ajuo-g3toxkodhntuuxwmey5uhncate3tdzlsmgwewc")  var pdf = spreadsheetfile.getas('application/pdf');  } catch (e) {   logger.log ("catched something: "+e+"\n"+e.stack); }  docslist.createfile(pdf) } 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -