Reputation: 551
I have created a PDF file from Google Doc as
var pdf = DriveApp.getFileById(myGoogleDoc).getAs("application/pdf")
Now I want to get the link of this PDF file, so anyone can click on that link and download the file.
Upvotes: 2
Views: 149
Reputation: 311
You can use the getUrl()
method to get get the url of the file to open it with Google App like Drive PDF Viewer ,Google Docs ,etc.
Drive PDF Viewer will be used to open your converted PDF in Google Drive.
Refer To:Search for getUrl() on this page
You can even get the url of a folder to open it in drive or other Google App.
Upvotes: 1