Button to render webpage content as PDF

I have a HubSpot webpage with standard content: headers, text, images, etc. I am hoping to add a button that says “Download as PDF.” When the user clicks the button, the page content should be exported to a template, which then formats the content as a PDF. Since the PDF is dynamically generated, we won’t have to manually update both the page and the doc when we want to make changes.

Is that possible using HubSpot?

Thank you!

**
_hubspot-button-accept-as-solution-gif-v00.gif
**

Does this post help you? If so, then help others by accepting it as a solution.

Q: Is it possible using HubSpot to create a dynamically generated PDF from the current webpage, so we don’t have to manually update both the page and the doc when we want to make changes?

Short A: Of course, but it’s NOT native functionality.

Longer A:

PDF creation is no more native to HubSpot than it is to WordPress, Joomla, or any other CMS on the market (that we know of). PDF creation from within a CMS generally requires some sort of intermediate negotiation that will want to, at some point, either speak to or be licensed by the PDF gods -- aka: Adobe! haha

That being said, there are a few different ways to generate a PDF from a webpage. Although, WHY you want to create a PDF from a webpage, ease of use, the level of control over formatting, and on-page performance requirements will greatly influence HOW you go about it.

[

This is by no means an exhaustive list.

]

-1- Print-to-PDF from the browser | Little control over formatting
The most common way to create a PDF file from a webpage is to manually use the browser’s print-to-PDF capability (if available).
- Example: This Original Post In PDF Format
-2- HTML-to-PDF via Javascript | Variable control over formatting
PDF creation is handled by the appropriate .js library and can be made to appear to be a fully integrated solution. This option has a cost in terms of on-page performance.
- see JQuery, jsPDF, etc.

-3- HTML-to-PDF via SaaS | Variable control over formatting
PDF creation is handled by an API call to a conversion provider and can be made to appear to be a fully integrated solution. This option can have a very low cost in terms of on-page performance since the conversion is actually handled off-page.
- Examples: Pdfcrowd, Docraptor, NeutrinoAPI, Restpack.io, etc.

Does that help solve your question?

Best,
Frank



hubspot-forum-signature-badge-v01.png

www.MFrankJohnson.com


Please add @MFrankJohnson to your message if you’d like me to reply.

@MFrankJohnson … so, what is the best solution to implement the “generate PDF button” into a HubSpot landingpage? Do you have a detailed description for a best practice? Cheerz. Frank