APIs & Integrations

aleonzzz
Teilnehmer/-in | Partner
Teilnehmer/-in | Partner

Create dynamic pdf from a form/UX

lösung

Hi, I am developing a quote builder in a HubSpot COS website as a module. I will ask prospects a series of questions. The desired output will be a dynamically generated PDF. Using PHP I am familiar with fPDF.

Does anyone have any idea as to whether it is possible to generate a PDF on a hubspot site?

Cheers
Al

1 Akzeptierte Lösung
dhirajpandey
Lösung
Teilnehmer/-in | Diamond Partner
Teilnehmer/-in | Diamond Partner

Create dynamic pdf from a form/UX

lösung

Hi, I think PHP will not work in this case, you will need a client side support. I think this may be the answer. You can check https://github.com/MrRio/jsPDF to generate PDF dynamically.

Lösung in ursprünglichem Beitrag anzeigen

4 Antworten
Denis
Mitwirkender/Mitwirkende | Partner
Mitwirkender/Mitwirkende | Partner

Create dynamic pdf from a form/UX

lösung

Hey @aleonzzz   - I've created a tool that generates a personalized PDF from contact record.

 

Here is a quick demo:

https://www.depositfix.com/pdf-generator

 

Let me know if you'd like to try this.

0 Upvotes
aleonzzz
Teilnehmer/-in | Partner
Teilnehmer/-in | Partner

Create dynamic pdf from a form/UX

lösung

Hi all, thanks for these responses, I will check out the javascript option, that sounds promising.

Cheers
Al

0 Upvotes
dhirajpandey
Lösung
Teilnehmer/-in | Diamond Partner
Teilnehmer/-in | Diamond Partner

Create dynamic pdf from a form/UX

lösung

Hi, I think PHP will not work in this case, you will need a client side support. I think this may be the answer. You can check https://github.com/MrRio/jsPDF to generate PDF dynamically.

IsaacTakushi
HubSpot Employee
HubSpot Employee

Create dynamic pdf from a form/UX

lösung

Welcome, @aleonzzz!

First thing's first; I love your username and profile photo! Well done, Doctor.

That said, I have yet to learn of someone who successfully generated PDFs on a HubSpot page. (Connor responded to a similar query a few weeks ago.)

I think you are onto something with leveraging fPDF, but you wouldn't be able to execute the PHP directly on the page, per this discussion.

I would love for other community members to jump in with their thoughts, though!

Isaac Takushi

Associate Certification Manager
0 Upvotes