How Do I View a PDF in Webflow?

Welcome to this tutorial on how to view a PDF in Webflow!

Webflow is a powerful web design tool that allows you to create stunning websites with ease. While it supports various file formats, viewing PDF files directly within your Webflow website can be a bit tricky. In this article, we will explore different methods to achieve this.

Method 1: Using the Embed Element

If you want to display a PDF file on your Webflow website, you can use the embed element. Here’s how:

  1. Step 1: Open your Webflow project and navigate to the page where you want to display the PDF.
  2. Step 2: Drag and drop an embed element onto your page.
  3. Step 3: Click on the embed element and go to the Settings panel on the right-hand side.
  4. Step 4: In the HTML Embed Code field, paste the following code:
    <embed src="your-pdf-file.pdf" type="application/pdf" width="100%" height="600px"></embed>

Note:

If your PDF file is not located in the same directory as your HTML file, make sure to provide the correct path in the `src` attribute of the `embed` tag.

Method 2: Using Google Drive

If you prefer hosting your PDF files on Google Drive, here’s how you can display them in Webflow:

  1. Step 1: Upload your PDF file to Google Drive.
  2. Step 2: Right-click on the PDF file and select “Get shareable link”.
  3. Step 3: Copy the link.
  4. Step 4: Open your Webflow project and navigate to the page where you want to display the PDF.
  5. Step 5: Drag and drop an embed element onto your page.
  6. Step 6: Click on the embed element and go to the Settings panel on the right-hand side.
  7. Step 7: In the HTML Embed Code field, paste the following code:
    <iframe src="your-copied-link" width="100%" height="600px"></iframe>

Conclusion

You have learned two different methods to view PDF files in Webflow. Whether you choose to use the embed element or host your PDFs on Google Drive, now you can seamlessly integrate PDF files into your Webflow websites.

We hope this tutorial has helped you achieve your goal. Happy designing!