Notion to PDF Knowledge Exporter

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.

agentskillexchange Updated 28 repo stars

File contents

Notion to PDF Knowledge Exporter

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.

Installation

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:

Source

agentskillexchange/skills/tree/main/skills/notion-to-pdf-knowledge-exporter commit 438b0e9928

Frequently asked questions

npx skillmds@latest add agentskillexchange/notion-to-pdf-knowledge-exporter