Hi,
My app has this form which takes details like product type, qty, rate, terms of service etc.
The user fills these details and then should tap on “generate Quotation”, and a quotation pdf needs to be generated on my company’s letter head.
Now i should be able to save this to my phone (it may or may not be saved on the backend)
Seems like a standard requirement for any sales related app being developed but i can’t seem to find a solution to this without having to custom code. Am i missing something? Is there a plug-in that would do this?
Thanks for sharing the links @Agustin_Carozo. Unfortunately i’m a little lost here. Primary reason being that i’m used to integrations/plugins of third party services (like on glide/bubble) where we connect via the API key and there isn’t really any custom code that we need to tinker with as long we set up the workflow/action right. The platform takes care of the most part.
Here - there isn’t any direct pdf plug in(like pdf monkey or docsautomator etc.).
Is there like a ‘create pdf in weweb for dummies guide’ that could perhaps shed a more detailed light on how to do this? I’m seeing Npm packages and Javascript custom code and the likes of such are freaking me out(although i’m not opposed to learning coding specially in the age of AI).
My requirement : A sales quotation form is filled from within a tab in the front end via a form. It can have one or many products with its associated rates, sku codes, qty and other details like date of quotation, client name, discount added, tax rates etc.
Certain calculations happen once the form is submitted and a final quotation is generated in the form of a pdf on the company’s letter head in the prescribed format which then can be either downloaded or directly e-mailed. This quotation stays in the database.
Where to begin? Do calculations happen on the server side? Should i use the weweb html to pdf feature to just print the current screen (not preferred) or do i connect to make.com or do use those npm packages using Javascript ? Which method is cheapest in terms of generating multiple pdfs in a day ?
Sorry for the confused state but i’m feeling a little overwhelmed here! Please help!
You’re right that there are a few different pieces here, and they’re easier to tackle in order:
First: do the calculations
Decide where your pricing logic lives:
In WeWeb workflows on the front end.
In a backend (e.g. Supabase Edge Functions or another backend) that receives the data, does the math, and stores the result.
Or via an automation tool like Make/n8n that takes your form data, runs the calculations, and writes back the result.
Second: build a “quotation” page
Once you have the calculated data, create a dedicated WeWeb page (like /quote/:id) that pulls that record and displays it with your logo, client info, line items, totals, etc. This page should look exactly like the final quotation you want.
Third: turn that page into a PDF
After the HTML page is ready, plug in a PDF solution:
Client‑side, with a custom component using html2pdf.js / html2canvas.
Backend/Edge Function that converts the HTML (or page URL) to PDF.
Or a third‑party like PDFMonkey / PDF Generator API called from Make/n8n/Xano.
So the next concrete step for you is: ignore the PDF for now, choose where to run the calculations, then build the single “quote view” page, and only then wire up your preferred PDF method on top of that.