# README
go-weasyprint
Golang port of Weasyprint python Html to Pdf library.
This is an ongoing work, not production ready just yet.
Outline
This package converts an HTML document (with its associated CSS files) to a PDF file. The heavy lifting is actually delegated to webrender, but this package implements a backend for PDF files, relying on benoitkugler/pdf.
# Packages
Package pdf implements the backend needed to draw a document, using github.com/benoitkugler/pdf.
# Functions
HtmlToPdf performs the conversion of an HTML document (`htmlContent`) to a PDF file, written in `target`.
HtmlToPdfOptions is the same as HtmlToPdf, with control overs the following parameters: - `baseUrl` is used as reference for links (stylesheets, images, etc...).