Embedding a PDF into a Webflow page is a great way to display documents directly on your website. Here's a simple guide to help you through the process.
1. Upload the PDF to Webflow
- Go to the Asset Manager in your Webflow project.
- Click on the Upload button to add your PDF file.
- Once uploaded, copy the URL of the PDF from the Asset Manager.
2. Add an Embed Component
- Drag an Embed component from the Add Elements panel onto your page.
- Open the Embed settings by clicking on the gear icon.
3. Embed the PDF
- In the Embed settings, enter the following code:
<iframe src="yourpdfurl" width="100%" height="500px"></iframe>
- Replace
"yourpdfurl" with the URL you copied earlier. - Adjust the width and height as needed to fit your design.
- Click Save & Close to apply the changes.
4. Adjust Responsiveness
- Make sure your embed adapts to different screen sizes by testing on various devices.
- Adjust the iframe
height or use CSS to make it fully responsive.
Summary
To embed a PDF in Webflow, upload it to the Asset Manager, use an Embed component, and adjust the iframe code with your PDF's URL and preferred dimensions. This ensures your PDF displays well across devices.