pdfcn

shadcn-labsMIT活跃维护

用 React/JSX 写 PDF 的组件库,底层基于 Rust 的 Takumi 和 Forme,一条命令零配置接入,省去手写 PDF 布局的麻烦。

Beautiful pdf components, built on Takumi and Forme. 100% Free, Zero config, one command setup.

暂无版本3,057star +48 / 7 天150fork同步于 2026-11-10 23:43 UTC

怎么上手

由 README 提炼,执行前请确认
README 未给出具体安装命令,仅指向 https://pdfcn.vercel.app/docs/installation
硬件要求按 README 说明

README 未说明

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

基于 React 的可复制粘贴 PDF 组件库,帮你快速拼出报表和发票

用 React/JSX 写 PDF 的组件库,底层基于 Rust 的 Takumi 和 Forme,一条命令零配置接入,省去手写 PDF 布局的麻烦。

核心能力

  • 基于 Takumi 或 Forme 两套渲染底座生成 PDF
  • 沿用 shadcn/ui 的 registry 格式与 CLI 工作流
  • 提供表格、表单、图表、发票、报告等组件与区块
  • 组件和区块在文档中实时预览效果
  • 代码归你所有,可自由改 props 和共享主题

容易踩的坑

README 未给出安装命令,需先查阅官方 Installation 文档确认依赖与初始化步骤

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Features

    • ⚡ Two rendering bases — Generate PDFs with Takumi or Forme
    • 🎯 Zero config — Works out of the box with sensible defaults
    • 👀 Live previews — Render every component and block directly in the documentation
    • 🎨 Fully customizable — Sensible props and shared themes; you own the code
    • 📦 shadcn/ui compatible — Uses the same registry format and CLI workflow
    • 🧩 Composable — Build documents from focused React components and renderer primitives
    • 📄 Components and blocks — Tables, forms, charts, invoices, reports, and more

    Community

    The pdfcn community lives on GitHub, where you can ask questions, share ideas, and show what you've built.

    Contributing

    Contributions are welcome. See CONTRIBUTING.md to get the repo running locally and land a change, and use issues and discussions to collaborate. By participating, you agree to the Code of Conduct.

    Security

    Please do not open public issues for security vulnerabilities. Follow SECURITY.md and report them privately through GitHub Security Advisories.

    License

    MIT

    Credits

    Contributors

    Contributors

    Made with contrib.rocks

    Stats

    Stats

    Star History