If you wanted to open the file in the Google Drive web viewer, the URL would be:
Alternatively, you can also read this article to learn more details.
Direct download link for original Google docs
The trick of editing the direct download URL also works for original Google documents. This will be very useful if you want to give users the option to download Google Document as a read-only PDF file or Google Spreadsheet as an Excel XLS file.
Google Docs – Direct Download
Any document in your Google Drive has a URL like:
/export?format=, adding that the document file format will be saved and your download link will look like this:
The above links will download Google documents in Word (.docx) and PDF formats. You can also change to txt, html, odt (OpenDocument) or epub format.
Google Slides – Download Link
Like Google Docs, the URL of presentations in Google Drive has the following format:
The direct download links for Google Slides are slightly different than for Google Docs. Replace
/export/formatwhere format can be pptx to load Google Slides as Microsoft Powerpoint or PDF file.
Download Google Slides as PNG file
With Google Slides, you can export your entire presentation as a PDF, or you can create links that download the slides as high-resolution PNG files.
All you need to do is add
?pageid=pPAGE_NUMBERin the URL. So if I load the 10th slide as a PNG file, the URL will be:
Google Sheets – Export Links
Open Google Spreadsheet in Google Drive, set the sheet to Public (or share with Anyone with a link ) and the url should look like:
The direct download links for Google Sheets are similar to Google Docs, and sheets can be exported as PDF, Excel XLSX, and CSV files.
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=xlsx https://docs.google.com/spreadsheets/d/FILE_ID/export?format=pdf https://docs.google.com/spreadsheets/d/FILE_ID/export?format=csv
Copy and create any shared Google Drive files of your own
/copyin the URL of any original Google Drive file, and anyone can click the link to quickly create their own copy of that file in Google Drive.
Link gốc: https://docs.google.com/document/d/FILE_ID/edit Link copy: https://docs.google.com/document/d/FILE_ID/copy
/copyalso works for Google Docs, Sheets, Slides, and Google Scripts. Add
?copyComments=trueif you want the copied document to include comments from the original document. Set
includeResolvedCommentsOnCopy = falseto ignore duplication of resolved comments and
copyCollaborators = falseto not share copied material with original collaborators.
You can also use it for Google Forms, but the form will only be copied to another user’s Google account if the form owner has granted access to the form.
Invite users when copying documents
If you add
[email protected]in the copy URL, the Google user who is copying the document will be prompted to share the document with the specific Google account immediately after copying the document.
Google Drawings – Embed as an image
You can export Google Drawings as SVG, PNG, JPEG, or PDF files by changing
For example, if the URL of Google Drawing is:
The direct link to download the drawing in a vector format like SVG or as a PDF file would be:
https://docs.google.com/drawings/d/FILE_ID/export/svg https://docs.google.com/drawings/d/FILE_ID/export/pdf https://docs.google.com/drawings/d/FILE_ID/export/jpg
You can even use these links to embed Google Drawing as inline images in your HTML web pages using the tag below:
<p> <img src="https://docs.google.com/drawings/d/FILE_ID/export/png" alt="Google Drawing" /> </p>