[{"data":1,"prerenderedAt":228},["ShallowReactive",2],{"repo-kozea-weasyprint-zh-CN":3,"i18n-kozea-weasyprint-zh-CN":225},{"mirrorPool":4,"detail":13,"relatedProjects":131},[5,9],{"key":6,"label":7,"base":8,"type":6},"github","mirror.github","https:\u002F\u002Fgithub.com\u002F",{"key":10,"label":11,"base":12,"type":10},"auto-proxy","mirror.autoProxy","https:\u002F\u002Fgithub.xxlab.tech\u002F",{"owner":14,"repo":15,"repoId":16,"repoUrl":17,"starCount":18,"language":19,"description":20,"languages":21,"screenshots":26,"homepage":27,"pushedAt":28,"ownerAvatar":29,"ownerName":14,"ownerBio":30,"lastSyncTime":31,"lastReleaseTime":32,"tags":33,"license":40,"category":41,"subgroup":42,"releases":43},"Kozea","WeasyPrint",2179572,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint",9709,"Python","The awesome document factory",{"Python":22,"CSS":23,"HTML":24,"PostScript":25},98.3,1,0.7,0,[],"https:\u002F\u002Fweasyprint.org","2026-10-15","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F870325?v=4","We build open source software that you will love.","2026-10-20T10:25:45.627963+00:00","2026-09-08T12:31:06Z",[34,35,36,37,38,39],"converter","css","html","pdf","python","weasyprint","BSD-3-Clause","development","PDF工具",[44,61,72,82,92,102,112,122],{"tag":45,"publishAt":32,"semVer":46,"prerelease":47,"assets":48},"v70.0",[25,25,25],false,[49,55],{"fileName":50,"sizeMb":51,"sha256":52,"downloadCount":53,"originUrl":54},"weasyprint-windows-onedir.zip",30.78,"ab1151f210b4e6bb7aa7a79e91a67e8ddb760094c107bfda55241b6aaefe7d53",4718,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv70.0\u002Fweasyprint-windows-onedir.zip",{"fileName":56,"sizeMb":57,"sha256":58,"downloadCount":59,"originUrl":60},"weasyprint-windows-onefile.zip",30.05,"1f62721d818f963c3eb82e92ba0851e31d0fc0550224e5eb4c073cb295bc4f3d",995,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv70.0\u002Fweasyprint-windows-onefile.zip",{"tag":62,"publishAt":63,"semVer":64,"prerelease":47,"assets":65},"v69.0","2026-06-02T14:42:23Z",[25,25,25],[66],{"fileName":67,"sizeMb":68,"sha256":69,"downloadCount":70,"originUrl":71},"weasyprint-windows.zip",28.45,"330101ff3ea50ebde4abf805283b6d703d5f3d71c77c983db94357ec4524a3ef",4607,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv69.0\u002Fweasyprint-windows.zip",{"tag":73,"publishAt":74,"semVer":75,"prerelease":47,"assets":76},"v68.1","2026-02-06T15:03:59Z",[25,25,25],[77],{"fileName":67,"sizeMb":78,"sha256":79,"downloadCount":80,"originUrl":81},27.43,"848e286b59c3fecac9829803fbbd7fc35d3ddf4dd38ce363bc6c3cee41c356e4",3515,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv68.1\u002Fweasyprint-windows.zip",{"tag":83,"publishAt":84,"semVer":85,"prerelease":47,"assets":86},"v68.0","2026-01-19T14:54:33Z",[25,25,25],[87],{"fileName":67,"sizeMb":88,"sha256":89,"downloadCount":90,"originUrl":91},27.63,"b4b17bef867e86fcd9709cec9cb1bf22732e419252c73b71491c37a82ea3c93f",891,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv68.0\u002Fweasyprint-windows.zip",{"tag":93,"publishAt":94,"semVer":95,"prerelease":47,"assets":96},"v67.0","2025-12-02T16:11:07Z",[25,25,25],[97],{"fileName":67,"sizeMb":98,"sha256":99,"downloadCount":100,"originUrl":101},27.61,"0b6eeffd23028de17726bb7724217e35f4397b169a07ade702747f07125896f0",1526,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv67.0\u002Fweasyprint-windows.zip",{"tag":103,"publishAt":104,"semVer":105,"prerelease":47,"assets":106},"v66.0","2025-07-24T11:44:37Z",[25,25,25],[107],{"fileName":67,"sizeMb":108,"sha256":109,"downloadCount":110,"originUrl":111},27.37,"0ad1b565b562783ce70e4a0e795fceb69f53871530d34629a1d43443128962f4",4406,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv66.0\u002Fweasyprint-windows.zip",{"tag":113,"publishAt":114,"semVer":115,"prerelease":47,"assets":116},"v65.1","2025-04-14T12:15:00Z",[25,25,25],[117],{"fileName":67,"sizeMb":118,"sha256":119,"downloadCount":120,"originUrl":121},23.12,"",6868,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv65.1\u002Fweasyprint-windows.zip",{"tag":123,"publishAt":124,"semVer":125,"prerelease":47,"assets":126},"v65.0","2025-03-20T10:24:11Z",[25,25,25],[127],{"fileName":67,"sizeMb":128,"sha256":119,"downloadCount":129,"originUrl":130},23.08,1172,"https:\u002F\u002Fgithub.com\u002FKozea\u002FWeasyPrint\u002Freleases\u002Fdownload\u002Fv65.0\u002Fweasyprint-windows.zip",[132,157,174,187,199,212],{"owner":133,"repo":134,"repoId":135,"category":136,"subgroup":42,"language":137,"tags":138,"starCount":146,"ownerUid":147,"latestTag":148,"platforms":149,"lastReleaseTime":154,"downloadCount":155,"description":156},"storytold","pdfcraft",1398086162,"tools","Rust",[139,140,37,141,142,143,144,145],"document-processing","documents","pdf-generation","pdf-processing","pdf-tools","pdf-viewer","rust",17952,76897702,"v0.14.0",[150,151,152,153],"windows","mac","linux","other","2026-10-25T13:56:05Z",96532,"PdfCraft 是纯 Rust 从零重写的开源 PDF 阅读与编辑工具，对标 Acrobat 工作流，支持阅读、整理、合并、拆分与加密 PDF，带批注线程，无账号无遥测，覆盖桌面四平台与浏览器。",{"owner":158,"repo":158,"repoId":159,"category":136,"subgroup":42,"language":160,"tags":161,"starCount":167,"ownerUid":168,"latestTag":169,"platforms":170,"lastReleaseTime":171,"downloadCount":172,"description":173},"pdfcpu",94702367,"Go",[162,163,164,165,37,166,143],"cli","go","golang","golang-library","pdf-files",8887,53127365,"v0.16.4",[150,151,152,153],"2026-10-27T21:17:38Z",200,"一款用Go编写的PDF处理库和命令行工具，支持验证、优化、加密、签名、文档组装和内容提取。",{"owner":175,"repo":176,"repoId":177,"category":41,"subgroup":42,"language":19,"tags":178,"starCount":180,"ownerUid":181,"latestTag":182,"platforms":183,"lastReleaseTime":184,"downloadCount":185,"description":186},"pdfminer","pdfminer.six",23465887,[179,37,38],"parser",7039,22586632,"20260107",[153],"2026-01-07T13:29:15Z",542,"pdfminer.six 是纯 Python 实现的 PDF 信息提取工具，专注文本数据的获取与分析，可拿到文字内容、位置、字体、颜色，也能提取图片、表单和目录。",{"owner":188,"repo":189,"repoId":190,"category":136,"subgroup":42,"language":19,"tags":191,"starCount":192,"ownerUid":193,"latestTag":194,"platforms":195,"lastReleaseTime":196,"downloadCount":197,"description":198},"happycola233","tchMaterial-parser",676833692,[38],6968,91878264,"v4.4",[150,151],"2026-10-07T06:21:11Z",56,"tchMaterial-parser 是一个基于 Python 的国家中小学智慧教育平台电子课本下载工具，提供跨平台图形界面，可一键解析并批量下载 PDF 电子课本，自动命名并添加书签。",{"owner":200,"repo":200,"repoId":201,"category":41,"subgroup":42,"language":202,"tags":203,"starCount":205,"ownerUid":206,"latestTag":207,"platforms":208,"lastReleaseTime":209,"downloadCount":210,"description":211},"qpdf",4539167,"C++",[37,204],"pdf-document-processor",5459,1812112,"v12.4.2",[150,151,152,153],"2026-09-27T00:01:39Z",20175,"一款保留内容的PDF文档转换工具和C++库，支持线性化、加密、拆分和合并PDF文件。",{"owner":213,"repo":214,"repoId":215,"category":136,"subgroup":42,"language":216,"tags":217,"starCount":218,"ownerUid":219,"latestTag":220,"platforms":221,"lastReleaseTime":222,"downloadCount":223,"description":224},"wuwangzhang1216","congcong-school",1208023113,"TypeScript",[],1103,60851473,"v1.7.3-ios-resources",[153],"2026-10-26T16:38:46Z",391,"聪聪学堂是免费开源的小学全科学习平台，覆盖一至六年级数学、语文、英语、科学，浏览器即开即用，全站 TTS 朗读并配 AI 分级故事。",{"description":226,"readmeHtml":227},"WeasyPrint 是把 HTML 与 CSS 渲染为 PDF 的 Python 可视化引擎，适合生成报告、发票、票据等打印文档，CSS 布局引擎专为分页设计且不依赖浏览器内核。","\u003Ch2 id=\"项目概述\">项目概述\u003C\u002Fh2>\u003Cp>WeasyPrint 自称文档工厂，帮助 Web 开发者把简单的 HTML 页面变成精美的统计报告、发票、票据等 PDF 文档。它是一个面向 HTML 和 CSS 的可视化渲染引擎，目标是支持面向打印的 Web 标准；CSS 布局引擎用 Python 编写、专为分页设计，不依赖 WebKit 或 Gecko 等浏览器内核。\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>项目\u003C\u002Fth>\n\u003Cth>内容\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>平台\u003C\u002Ftd>\n\u003Ctd>Linux、macOS、Windows\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>语言\u003C\u002Ftd>\n\u003Ctd>Python 3.11+\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>许可\u003C\u002Ftd>\n\u003Ctd>BSD 三条款\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>输出格式\u003C\u002Ftd>\n\u003Ctd>PDF\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cblockquote>\n\u003Cp>会写 HTML 和 CSS，就能产出排版精良的 PDF。\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"主要功能\">主要功能\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>HTML 转 PDF\u003C\u002Fstrong>：传入 URL 或 HTML 文件即可渲染为分页 PDF\u003C\u002Fli>\n\u003Cli>\u003Cstrong>CSS 分页引擎\u003C\u002Fstrong>：布局引擎专为打印分页设计，支持页眉页脚与页码\u003C\u002Fli>\n\u003Cli>\u003Cstrong>打印标准支持\u003C\u002Fstrong>：实现面向打印的 CSS 特性，如 @page 规则\u003C\u002Fli>\n\u003Cli>\u003Cstrong>字体处理\u003C\u002Fstrong>：支持 web 字体与系统字体的使用和嵌入\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Python API\u003C\u002Fstrong>：一行调用即可在服务端生成 PDF\u003C\u002Fli>\n\u003Cli>\u003Cstrong>独立内核\u003C\u002Fstrong>：不依赖浏览器引擎，部署轻便、可按需扩展\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"适用人群\">适用人群\u003C\u002Fh2>\u003Cul>\n\u003Cli>需要生成报表、发票的后端开发者\u003C\u002Fli>\n\u003Cli>把网页内容归档为 PDF 的运维团队\u003C\u002Fli>\n\u003Cli>出版与票据打印系统开发者\u003C\u002Fli>\n\u003Cli>希望复用 CSS 排版技能的 Web 工程师\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"快速上手\">快速上手\u003C\u002Fh2>\u003Col>\n\u003Cli>安装\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-bash\">pip install weasyprint\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"2\">\n\u003Cli>在 Python 中渲染 PDF\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-python\">from weasyprint import HTML\n\nHTML('report.html').write_pdf('report.pdf')\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Col start=\"3\">\n\u003Cli>也可以直接用命令行转换\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cdiv class=\"code-block\">\u003Cpre>\u003Ccode class=\"hljs language-bash\">weasyprint report.html report.pdf\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\u003Ch2 id=\"核心优势\">核心优势\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>复用 Web 技能\u003C\u002Fstrong>：排版直接用 HTML 与 CSS 表达，无需学习新模板语言\u003C\u002Fli>\n\u003Cli>\u003Cstrong>专为分页而生\u003C\u002Fstrong>：页码、分页控制等打印需求原生支持\u003C\u002Fli>\n\u003Cli>\u003Cstrong>无浏览器依赖\u003C\u002Fstrong>：纯 Python 布局引擎，服务端部署轻便\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"系统要求\">系统要求\u003C\u002Fh2>\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>项目\u003C\u002Fth>\n\u003Cth>要求\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>语言\u003C\u002Ftd>\n\u003Ctd>Python 3.11+，支持 CPython 与 PyPy\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>操作系统\u003C\u002Ftd>\n\u003Ctd>Linux、macOS、Windows\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>系统依赖\u003C\u002Ftd>\n\u003Ctd>Pango 等图形库\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2 id=\"注意事项\">注意事项\u003C\u002Fh2>\u003Cul>\n\u003Cli>\u003Cstrong>非浏览器渲染\u003C\u002Fstrong>：不含 JavaScript 执行，动态内容需先渲染为静态 HTML\u003C\u002Fli>\n\u003Cli>\u003Cstrong>系统库安装\u003C\u002Fstrong>：Linux 服务器上需先安装 Pango，缺失会导致启动报错\u003C\u002Fli>\n\u003C\u002Ful>\n",1793197887487]