You can use this workround  .
pag.html
<html>
<input type="submit" onclick="downloadPDF()"/>  
<a href="#" id="myDownloadLink" style="display:none">Click here to open</a>
<script>
  function sucess(e) {
   alert(e);
   var downloadLink = document.getElementById("myDownloadLink");  
   downloadLink.href=e;
   downloadLink.style.display = 'block';    
}
function downloadPDF() {
  google.script.run.withFailureHandler(alert).withSuccessHandler(sucess).getFile();
}
</script>
</html>
code.gs
function doGet() {
  return HtmlService.createHtmlOutputFromFile("pag");
}
function getFile() {
  return DriveApp.getFileById("1pczv0kRvgpI87owXWUXTtm4wXXsiG8-ErVWFtv05izI").getUrl();
}