Can I create a downloadable pdf from my store?

Hey Everyone,

Does anyone know how I would go about getting placing a link on my store so that once clicked, a pdf would automatically download?

I’m hoping to do this for my ‘Returns Policy’ so that in the event a customer wants to return a product, they can download the form from my website.

Thanks in advance

Tom.

2 Likes

Hi Tom,

You should be able to do this by uploading the PDF to the files section of your Shopify admin:

Once you have that URL you can place it into your pages. Depending on how you’re theme’s setup you could use the following HTML:

View](https://cdn.shopify.com/s/files…">View) Returns Policy

Where "https://cdn.shopify.com/s/files…" is the URL you copied from before.

Hope this helps!

4 Likes

But it will only open the pdf on another tab. How to make it so that once clicked the pdf downloads automatically?

1 Like

That “mime-type” varies per browser/device (and every user in the world can change this setting themselves). @stemon You would be best to open in a new window, and just let the browser do its thing.

1 Like

Hi,

No opening to a different window. Download it directly from your store. No app needed, nor external library. Check the video for more information

1 Like

Hi @Tom_D1 ,

On Shopify, the PDF file will pop up in a new tab automatically. Your customers can preview the file and choose to download it with just a click. If you want the file to be downloaded right away, you can use a docs file instead.

By the way, I have a great suggestion for you :blush: ! There’s a super useful, free Shopify app - Ease Product Attachments that lets you upload your files in different formats and showcase them on your product pages. That way, your customers can easily access and download them.

You can check out the app demo first to see if it suits your needs before installing it.

I really hope my suggestion helps you out!

1 Like

Go one step further and create an immersive digital flip catalog version to deliver an incredible, stand-out experience that elevates your content. Simply upload your PDF and you can make it clickable, shoppable, downloadable, and more!

2 Likes

If you are selling on Shopify + other places and intend to use the same PDF form for your return; you may want to consider using a third party PDF hosting instead of Shopify, for example Google Drive, Dropbox or Titlegram.

They all come with free option, and Titlegram also lets you host it on a shorter and more professional URL with your branding.

2 Likes

Hey Daniel, your solution was very helpful for me but im trying to center align the link. do you think it’ll be possible?

1 Like

How to Force PDF Downloads Using JavaScript in Shopify: A Complete Guide

If you’re looking to implement a solution in your Shopify store where PDF files download automatically instead of opening in the browser, this guide is for you. By default, PDF files uploaded to Shopify often open in the browser when linked. To fix this and ensure a smooth user experience, you can use JavaScript to force the files to download.

.download_pdf { margin-bottom: 25px; } .download_pdf_inner { display: flex; gap: 12px; } .download_pdf_inner .download_btn { padding: 15px; gap: 8px; width: 50%; }
1 Like