---
title: Embedding PDF Files in HubSpot Quote Templates Using JavaScript
description: Embedding PDFs in HubSpot quotes using JavaScript enhances sales efficiency by integrating external documents seamlessly into the quote templates. Discover how we achieved this with a custom solution.
---

[LuminaFolio](https://www.growthnatives.agency/luminafolio-blog)

# [Embedding PDF Files in HubSpot Quote Templates Using JavaScript](https://www.growthnatives.agency/luminafolio-blog/embedding-pdf-files-in-hubspot-quote-templates-using-javascript)

 Written by [Deepak Garg](https://www.growthnatives.agency/luminafolio-blog/author/deepak-garg) | Mar 13, 2025 10:11:22 AM

To overcome this, we implemented a custom JavaScript solution that dynamically displays external PDF files within the HubSpot quote template.

## **Challenge**

- **HubSpot quote templates do not allow direct PDF embedding.**
- **No built-in feature to attach external files within a quote.**
- **Users required a seamless way to display relevant PDF files without manually attaching them in emails or external links.**

## **Solution:**

We developed a JavaScript-based approach that retrieves the PDF file URL from a deal property in HubSpot and dynamically embeds it within the quote page.

## **How It Works**

1. Upload the PDF file to the deal record in HubSpot.
2. Store the file URL in a custom deal property.
3. Modify the quote template to include a JavaScript script that:

## **Conclusion**

By leveraging JavaScript within HubSpot quote templates, we successfully overcame HubSpot’s limitations and provided a custom solution for embedding PDFs in published quotes. This approach ensures a smooth workflow, improving efficiency for sales teams and enhancing the overall user experience for clients.

[View full post](https://www.growthnatives.agency/luminafolio-blog/embedding-pdf-files-in-hubspot-quote-templates-using-javascript)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Deepak Garg"
  },
  "dateModified" : "2025-03-17T10:40:47.291Z",
  "datePublished" : "2025-03-13T10:11:22Z",
  "headline" : "Embedding PDF Files in HubSpot Quote Templates Using JavaScript",
  "image" : {
    "@type" : "ImageObject",
    "height" : 512,
    "url" : "https://20797637.fs1.hubspotusercontent-na1.net/hubfs/20797637/unnamed-1.png",
    "width" : 970
  },
  "mainEntityOfPage" : "https://www.growthnatives.agency/luminafolio-blog/embedding-pdf-files-in-hubspot-quote-templates-using-javascript",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "LuminaFolio"
  }
}
```