maroto vs pdfcn
Go PDF layouts compared with reusable React PDF components
maroto and pdfcn both help developers build PDFs from reusable parts instead of positioning every element manually. maroto provides a Go row-and-column layout with automatic page flow, while pdfcn offers customizable React components and blocks built on Takumi or Forme.

maroto: Create PDFs with Go and a Bootstrap-Like Grid
Maroto is a Go library for building PDFs from rows, columns, and reusable components instead of positioning every element manually. It suits developers creating reports, invoices, and other structured documents who want automatic page flow and a familiar grid layout.

pdfcn: Build React PDFs with Takumi and Forme
pdfcn is a free, customizable set of React PDF components built on Takumi and Forme, with shadcn/ui-compatible installation. Use it to assemble PDFs from reusable components and blocks, then customize the code in your project.
| maroto | pdfcn | |
|---|---|---|
| Language | Go | TypeScript |
| License | MIT | MIT |
| Stars | 2.8k | 3k |
| Forks | 258 | 153 |
| Last analyzed | Oct 11, 2026 | Oct 21, 2026 |
Key differences
- maroto is written in Go and builds on Gofpdf; pdfcn is written in TypeScript and is built on Takumi and Forme.
- maroto organizes content into rows and columns, adds pages when content overflows, and can repeat headers on new pages. pdfcn focuses on reusable components and blocks for composing documents.
- pdfcn offers ready-made examples for tables, forms, charts, invoices, and reports, with code developers can copy and customize in their application. maroto supports multiple components within columns.
- pdfcn follows a shadcn/ui-compatible registry and CLI workflow; maroto provides agent skill files for AI coding agents generating PDFs.
- Both projects use the MIT license. maroto has 2.8k stars and 258 forks; pdfcn has 3k stars and 153 forks.
- maroto has regular commits and releases but contributions concentrated in one person. pdfcn is newer, has no releases in the past year, and has a less concentrated contributor base.
Choose maroto if you…
- need to build structured PDFs in Go using a row-and-column layout.
- want content to flow across pages and headers to repeat on new pages.
- prefer arranging reusable components in columns rather than manually placing elements.
Choose pdfcn if you…
- build PDFs in React and want to choose between Takumi and Forme.
- want customizable starting components for tables, forms, charts, invoices, or reports.
- prefer copying PDF component code into your application and tailoring it through a shadcn/ui-compatible workflow.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.