In Progress

HTML button does not work to download a google docs document

This HTML button works correctly and downloads a PDF that is in my google drive (you can use whatever free HTML editor to copy/paste it and run it, for example this one [login to view URL]):

<a href="[login to view URL];exportFormat=pdf&amp;portrait=false&amp;gid=1079800513">Descargar informe</a>

However, if I implement that button as a web app in Google Apps Script, it does not work (it worked, but about three days ago, it stop working, I don't know why). The web app code I created is as follows:

1) One .gs file with this simple code:

function doGet() {

var output = [login to view URL]('pruebadescarga');

return [login to view URL]().setSandboxMode([login to view URL]).setXFrameOptionsMode([login to view URL]);

}

2) And one HTML file with this simple code:

<html>

<a href="[login to view URL];exportFormat=pdf&amp;portrait=false&amp;gid=1079800513">Descargar informe</a>

</html>

3) And finally I published it as a web app (anyone even anonymous can access to it) so that we can access to the HTML-Web app with this link:

[login to view URL]

As you can see,the button here does not work although it used to work and although it is the same button I stated at the begining in HTML.

I would like someone who understands where is the problem so that I can fix it.

Skills: JavaScript, HTML, HTML5, Google App Engine, Web API

See more: google drive direct download link 2020, download pdf from google drive link, google drive folder download link, download from google drive link, google sheets, google drive url format, how to download https docs google com spreadsheets, download from google drive without account, integrate google docs dolphin, ebook download google, google docs contacts, download google earth, google docs api web, google docs api create document, google docs html parser, script button email google docs, clean html google docs, how do google docs work, how does google docs work, how to share a document on google docs

About the Employer:
( 0 reviews ) Madrid, Spain

Project ID: #25843464

Awarded to:

(1 Review)
0.8

7 freelancers are bidding on average €28 for this job

durgesh8527

Hello Sir/Mam, I have read your post requirement for the Hello Sir/Mam, I have read your post requirement for the " would like someone who understands where is the problem so that I can fix it. ". Now I have some quest More

€30 EUR in 7 days
(88 Reviews)
6.5
corporatessc

Hi There, I can debug the script of your web app & make the html button work again. I am a Google Apps Script Developer with more than 5+ years of experience. I run a company specialized in developing apps on Googl More

€30 EUR in 2 days
(15 Reviews)
4.3
yaroslavneedli8

Hi, ★★★★★JAVASCRIPT Expert here ★★★★★ I have checked detail your requirements and ready to start right now. I have rich experience of JAVASCRIPT, Jquery, ReactJS, AngularJs, D3Js, Vue.Js etc. Please Send me a messag More

€45 EUR in 1 day
(1 Review)
0.4
soumanbera1921

Hello, Hope you are doing good? We are a group of IT guys having experience of more than 5+ in this field. I have came across with all your requirements. We believe in satisfying the customers with our appropriate wor More

€29 EUR in 5 days
(0 Reviews)
0.0
kartikjagani

Hello, I am checked your requirements and I have 2+ year experience in Frontend [login to view URL] provide me this project I am give best solution for your functionality

€23 EUR in 1 day
(0 Reviews)
0.0
ankleshsingh

Hi, Hope you are doing good. I have gone through your requirement and I do have skill set you are looking for. I am certified advanced RPA and QA Automation Professional. I have 2+ year of experience with Automation More

€28 EUR in 1 day
(0 Reviews)
0.0