weasyprinthtmlcsspdf

A Python library that converts HTML and CSS to PDF using a CSS layout engine designed for paged media; supports page breaks, headers, counters, and responsive layout printing standards without relying on browser rendering engines.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "weasyprinthtmlcsspdf" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-cd55659671fb056accc88a18b72989c7919bf3bccf2c59561c7313812ae8ba8f. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/weasyprint-html-css-pdf-document-generator before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

A Python library that converts HTML and CSS to PDF using a CSS layout engine designed for paged media; supports page breaks, headers, counters, and responsive layout printing standards without relying on browser rendering engines.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "WeasyPrint HTML 和 CSS 到 PDF 文档生成器"
slug: "weasyprint-html-css-pdf-document-generator"
version: "1.0.0"
displayName: "WeasyPrint HTML 和 CSS 到 PDF 文档生成器"
summary: "WeasyPrint 是由 Kozea/CourtBouillon 开发的 Python 库,用于将 HTML 和 CSS 转换为 PDF 文档。它实现了一个专为分页设计的 CSS 布局引擎,支持打印的网页标准,包括页面分割、页眉、页面计数器和响应式布局,而无需依赖 WebKit 或 Gecko 等浏览器引擎。"
license: "MIT"
description: "WeasyPrint 是由 Kozea/CourtBouillon 开发的 Python 库,用于将 HTML 和 CSS 转换为 PDF 文档。它实现了一个专为分页设计的 CSS 布局引擎,支持打印的网页标准,包括页面分割、页眉、页面计数器和响应式布局,而无需依赖 WebKit 或 Gecko 等浏览器引擎。"
github_stars: 8841
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
category: "Data Extraction & Transformation"
framework: "Custom Agents"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 8841

WeasyPrint HTML 和 CSS 到 PDF 文档生成器

WeasyPrint is a Python library by Kozea/CourtBouillon that converts HTML and CSS into PDF documents. It implements a CSS layout engine designed specifically for pagination, supporting web standards for printing including page breaks, headers, page counters, and responsive layouts without relying on a browser engine like WebKit or Gecko.

Installation

Requirements and caveats from upstream:

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 HTML/CSS 到 PDF 的转换功能,解决文档生成和归档的实际需求
  • 适用于报告生成、网页内容保存等明确场景,具有一定的通用性
Trigger Precision55/100

Areas to improve

  • 触发词不全 Reported severity: Minor

    description 字段缺乏具体的触发关键词,用户难以通过自然语言准确触发

    Recommendation: 建议在 description 中添加如 'convert html to pdf', 'generate pdf from css', 'html css pdf converter' 等具体触发词

Structure and Standards58/100

Areas to improve

  • 缺少 When to Use/示例章节 Reported severity: Major

    文档缺少核心的 Usage/How to Use 章节、具体的端到端示例、明确的 Phase/步骤划分和出口条件

    Recommendation: 建议添加详细的 Usage 章节,包含具体的代码示例、使用步骤和预期输出

Execution Reliability62/100

Areas to improve

  • 缺少异常处理机制 Reported severity: Minor

    未提供具体的安装命令、依赖管理说明、异常处理机制或参数验证

    Recommendation: 建议补充详细的安装说明、常见错误处理方法和参数验证机制

Highlights

  • 工具来源(GitHub 地址)明确,便于用户验证和获取
Evidence Verifiability (mean of the first four)63/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • raw.githubusercontent.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.