getBlob() is converting files to pdf
<p>I am trying to follow up on the discussion here: <a href="https://stackoverflow.com/questions/13259041/creating-a-zip-file-inside-google-drive-with-apps-script/13262602#comment60115885_13262602">Zip drive files</a>.</p>
<p>If you execute the following code, you'll see that for some reason, it produces PDF files. It seems getBlob() is converting them to PDF.</p>
<pre><code>  var folderId = DriveApp.getFoldersByName(&quot;Test&quot;).getId();
  var files = DriveApp.getFoldersByName(&quot;Test&quot;).getFiles();
  var blobs = [];
  var fileBlob = '';
  var file = '';
  while(files.hasNext()){
    file = files.next();
    fileBlob = file.getBlob();
    blobs.push(fileBlob);
  }
  
  var zippedFolder = Utilities.zip(blobs, 'Test.zip');
  DriveApp.getFoldersByName(&quot;Test&quot;).getParents().next().createFile(zippedFolder);
</code></pre>
<p>I download Test.zip and every file in that (like a google sheets or google docs) file has been converted into a PDF.
Secondly, if the folder contains any Google Forms file, the code with fail with an error saying unable to convert forms to pdf.</p>
<p>I don't want to convert any file to pdf. I just want to zip the folder. Any thoughts?</p>