MCPcopy Index your code
hub / github.com/benoitkugler/go-weasyprint

github.com/benoitkugler/go-weasyprint @v0.0.14

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.14 ↗ · + Follow
525 symbols 1,226 edges 37 files 76 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

go-weasyprint

Go Reference Build Status Go Report Card Latest release

Golang port of Weasyprint python Html to Pdf library.

This project is still in alpha state; you should try it carefully before using it in production.

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.

Core symbols most depended-on inside this repo

State
called by 7
pdf/page.go
NewOutput
called by 6
pdf/pdf.go
Finalize
called by 6
pdf/pdf.go
Rectangle
called by 5
pdf/page.go
Add
called by 5
pdf/text_font_subset.go
HtmlToPdf
called by 4
main.go
SetColorRgba
called by 4
pdf/page.go
Transform
called by 4
pdf/page.go

Shape

Function 465
Method 53
Struct 6
TypeAlias 1

Languages

Go100%

Modules by API surface

pdf/pdf_test.go45 symbols
pdf/page.go37 symbols
pdf/draw_table_test.go36 symbols
pdf/draw_svg_test.go34 symbols
pdf/draw_image_test.go31 symbols
pdf/draw_text_test.go25 symbols
pdf/draw_box_test.go25 symbols
pdf/draw_background_test.go23 symbols
pdf/draw_absolute_test.go22 symbols
pdf/pdf.go21 symbols
pdf/draw_test.go20 symbols
pdf/draw_svg_text_test.go20 symbols

For agents

$ claude mcp add go-weasyprint \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page