Can GAS save a doc as epub?

Is it possible to convert a Google Doc file to an ePUB file using Google Apps Script?

If so, is there a syntax similar to the following?

docblob = DocumentApp.getActiveDocument().getAs('application/pdf');

Yes, it is possible to convert a Google Doc file to an ePUB file using Google Apps Script. The syntax to get the Google Doc file as a blob is as follows:

docblob = DriveApp.getFileById('docID').getBlob();

You will need to replace ‘docID’ with the ID of the Google Doc file you want to convert to ePUB. Once you have the blob for the Google Doc file, you can use the Blob service in Google Apps Script to convert it to an ePUB file.