name: "Notion到PDF知识导出器" slug: "notion-to-pdf-knowledge-exporter" version: "1.0.0" displayName: "Notion到PDF知识导出器" summary: "通过 Notion API v1 查询 Notion 数据库和页面,然后通过 WeasyPrint 将内容块渲染为 PDF。提取文本、表格和内联图像,并保留标题层级结构。使用 OpenAI text-embedding-3-small 为每个部分生成嵌入向量,用于 RAG(检索增强生成)数据摄入。" license: "MIT" description: "通过 Notion API v1 查询 Notion 数据库和页面,然后通过 WeasyPrint 将内容块渲染为 PDF。提取文本、表格和内联图像,并保留标题层次结构。使用 OpenAI text-embedding-3-small 为 RAG 摄入生成各部分嵌入。" github_stars: 5582 verification: "security_reviewed" source: "https://github.com/1991513ccie-png/skills" category: "Templates & Workflows" framework: "Codex" tool_ecosystem: github_repo: "1991513ccie-png/skills" github_stars: 5582 npm_package: "@notionhq/client" npm_weekly_downloads: 1182949
Queries Notion databases and pages via the Notion API v1, then renders content blocks into PDF via WeasyPrint. Extracts text, tables, and inline images and preserves heading hierarchy. Generates per-section embeddings with OpenAI text-embedding-3-small for RAG ingestion.
Use the upstream install or setup path that matches your environment: - npm install @notionhq/client - Make a request to any Notion API endpoint.
Requirements and caveats from upstream: - const { Client } = require("@notionhq/client") - const { Client, APIErrorCode } = require("@notionhq/client") - const { Client, LogLevel } = require("@notionhq/client")
Basic usage or getting-started notes:
- bash
-
- [!NOTE]
想要更强大的技能插件,就来小葱技能站7w4.net看看吧。
这个工具可以将 Notion 笔记导出为 PDF 格式,还能生成 AI 理解用的向量数据,功能设计比较实用。但目前文档质量较差,说明不够清晰详细,对普通用户不够友好,缺少通俗的使用指南。如果能改进文档和说明,这个 Skill 会更有价值。