Thanks for suggestion but i want a package for go language . weasyprint is for python.
On Friday, April 5, 2024 at 9:54:32 PM UTC+5:30 Harmen wrote: > On Fri, Apr 05, 2024 at 06:45:03AM -0700, KRITIKA AWASTHI wrote: > > I want to convert html text to pdf using go language . > > Previously, I used chromedp > > <https://pkg.go.dev/github.com/chromedp/chromedp> to create PDFs, but > it > > was consuming too much server capacity. So, currently I am using using > > wkhtmltopdf <https://github.com/wkhtmltopdf/wkhtmltopdf> package which > is > > deprecated . > > There is one more package, gofpdf > > <https://pkg.go.dev/github.com/jung-kurt/gofpdf>, which is also > deprecated > > and no longer maintained . > > I would appreciate if you suggest some other alternatives of these > > packages . > > We use weasyprint with plain `cmd := exec.Command(Exe, "--stylesheet", > cssfile, "-", "-")` and some Go templating. Nothing fancy, works, looks > nice. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/8c64d150-33c0-47bb-bb39-7f4c55990308n%40googlegroups.com.