use the download attribute inside your <a>
tag
<a href="https://stackoverflow.com/questions/2598658/content/file.pdf" download > pdf link </a>
<a href="https://stackoverflow.com/questions/2598658/content/file.doc" download > doc link </a>
More Related Contents:
- How do I force files to open in the browser instead of downloading (PDF)?
- Proper MIME media type for PDF files
- Removing Watermark from PDF iTextSharp
- How to get rid of blank pages in PDF exported from SSRS
- Cropping a PDF using Ghostscript 9.01
- Unable to copy exact hindi content from pdf
- iTextSharp-generated PDFs now cause Save dialog in Adobe Reader X
- How to download single sheet as PDF to my local device directly (not export to Google Drive)?
- Convert PDF to image with high resolution
- Convert Google Doc to PDF using Google Script Editior
- PDF text extraction from given coordinates
- How can I remove all images from a PDF?
- Security Method is No Security but Page Extraction and Document Assembly is not Allowed
- How can I visually inspect a PDF? Are there any tools that work on windows? [closed]
- Gluing (Imposition) PDF documents
- Change PDF title in browser window
- Export Single Sheet to PDF in Apps Script
- How to fill out a pdf file programatically? [closed]
- How can I convert XHTML nested list to pdf with iText?
- Unicode in PDF
- Checking off pdf checkbox with itextsharp
- Get rid of the white space around matlab figure’s pdf output
- Script (or some other means) to convert RGB to CMYK in PDF?
- What is the smallest possible valid PDF?
- Storing plot objects in a list
- How to open pdf file in Windows Phone 8?
- Data encoding when submitting a PDF form using AcroForm technology
- Enable zooming/pinch on UIWebView
- overlay one pdf or ps file on top of another
- How to extract Highlighted Parts from PDF files