Registry / utility / sebastiaanklippert-go-wkhtmltopdf

sebastiaanklippert-go-wkhtmltopdf

JSON →
library1.9.3gogounverified

Wrappers around the wkhtmltopdf command-line tool to convert HTML to PDF.

go get github.com/SebastiaanKlippert/go-wkhtmltopdf
INSTALL
IMPORT
SIG · SEBASTIAANKLIPPERT
S
sebastiaanklippert-go-wkhtmltopdf
utilitygov1.9.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

wkhtmltopdf
github.com/SebastiaanKlippert/go-wkhtmltopdf

Generates a PDF from a URL using wkhtmltopdf.

package main import ( "fmt" "github.com/SebastiaanKlippert/go-wkhtmltopdf" ) func main() { pdfg, _ := wkhtmltopdf.NewPDFGenerator() pdfg.AddPage(wkhtmltopdf.NewPage("https://example.com")) _ = pdfg.Create() fmt.Println("PDF generated") }
Debug
Known issues
gotchaRequires wkhtmltopdf binary installed on the system.
fix
Install wkhtmltopdf from https://wkhtmltopdf.org/downloads.html
affects: all
Upgrade
Version history
1.9.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
sebastiaanklippert-go-wkhtmltopdf — go get sebastiaanklippert-go-wkhtmltopdf · libregistry