title: Merge Multiple PDF's into one PDF
body: <p>I am having some issues with my code. I am trying to loop through a Drive folder that contains many PDFs and then merge these into one file. When I use my code it just creates a PDF for the last PDF in the Drive folder and not merge them all together as expected. </p>
  
  <pre><code>function MergeFiles(){
    var folder = DocsList.getFolderById('myFolderID'); 
    var files = folder.getFiles(); 
    var blobs = [];    
    for( var i in files )   
      blobs.push(files[i].getBlob().getBytes());
    Logger.log(blobs.push(files[i].getBlob().getBytes()));
    var myPDF = Utilities.newBlob(blobs.pop(), "application/pdf", "newPDF.pdf");
    folder.createFile(myPDF);
  }
  </code></pre>