gofpdf
bella
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gofpdf
-
Launch HN: Onedoc (YC W24) – A better way to create PDFs
I'm with you..
We ended up writing a similar wrapper around https://github.com/jung-kurt/gofpdf library. We haven't open sourced it yet. But it's made it a lot easier to deal with rendering a PDF, especially over pagebreaks ect.
- Ask HN: Slimvoice Alternative?
- Do you know any library to make pdf in golang?
-
Create PDF Form and fill PDF Form
I use: github.com/jung-kurt/gofpdf
- How To Create a PDF in Go: A Step-By-Step Tutorial
-
[Advice] Generating PDFs in Golang.
I used gofpdf before but it's not updated anymore.
-
Is there a good library for pdf generation golang?
gofpdf is an archived project but still works very well for me https://github.com/jung-kurt/gofpdf
-
tdewolff/canvas: vector graphics in Go (mayor update)
draw2d's PDF renderer uses https://github.com/jung-kurt/gofpdf which is not supported anymore, it includes a semi-functioning font system
bella
-
tdewolff/canvas: vector graphics in Go (mayor update)
E.g. for text rendering, I find the largest font size that still renders inside that constraint. https://github.com/tv42/bella/blob/42d81584a247a38647c3ccc63e58b50e1c00e444/internal/render/render.go#L118 and https://github.com/tv42/bella/blob/42d81584a247a38647c3ccc63e58b50e1c00e444/internal/render/binsearch.go -- note I'm doing the scaling with the font renderer, not by resizing the output of whatever it renders, because different sizes get different hinting.
-
Generate text to image in Go
Hi! Thank for reading my post. For my use case this is more than enough and anyone can modify the code which is available on github. I will definitely consider https://github.com/tv42/bella/ on my other project. By the way I put some provision on specifying the font size via the web interface and facebook uses at least an og:image of 1200x630 hence fixed image. Cheers!
What are some alternatives?
gopdf - A simple library for generating PDF written in Go lang
canvas - Cairo in Go: vector to raster, SVG, PDF, EPS, WASM, OpenGL, Gio, etc.
maroto - A maroto way to create PDFs. Maroto is inspired in Bootstrap and uses gofpdf. Fast and simple.
unipdf - Golang PDF library for creating and processing PDF files (pure go)
Jet Template Engine for GO - Jet template engine
raymond - Handlebars for golang
quicktemplate - Fast, powerful, yet easy to use template engine for Go. Optimized for speed, zero memory allocations in hot paths. Up to 20x faster than html/template
pdfcpu - A PDF processor written in Go.
Razor - Razor view engine for go
fasttemplate - Simple and fast template engine for Go
damsel - Package damsel provides html outlining via css-selectors and common template functionality.