download
custom attribute.Yes, it’s possible to create an automatic PDF download link in Webflow, but Webflow doesn’t support timed or auto-triggered file downloads natively. However, you can simulate an automatic download when a user clicks a link or lands on a page.
https://cdn.prod.website-files.com/.../filename.pdf
).download
as a custom attribute:download
This tells browsers to trigger a download instead of opening the PDF.
If your client needs the file to download immediately when the user visits the page, use a bit of custom code:
Create a new Page (e.g., /download-pdf
)
Add a Redirect Link with auto-download functionality:
Go to the Page Settings.
Scroll to Before
tag and insert this inline script reference:
<script>window.location.href = "/path-to-your-file.pdf";</script>
Optionally, include the download
attribute in an invisible link and trigger .click()
in JavaScript, but note that automatic downloads via JS may not work on all browsers due to security restrictions.
You can add an automatic PDF download link in Webflow by uploading the file, linking to it with the download
attribute, or simulating auto-download on page load using minimal script. Full automation without user interaction isn’t fully reliable due to browser security restrictions.