# 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.

- Skill: `agentskillexchange/notion-to-pdf-knowledge-exporter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/notion-to-pdf-knowledge-exporter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/notion-to-pdf-knowledge-exporter/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/notion-to-pdf-knowledge-exporter

---


# 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:
- bash
- [![Open Val Town Template](https://stevekrouse-badge.web.val.run/?3)](https://www.val.town/v/charmaine/NotionJsSDK)
- [!NOTE]

- Source: https://github.com/makenotion/notion-sdk-js
- Extracted from upstream docs: https://raw.githubusercontent.com/makenotion/notion-sdk-js/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/notion-to-pdf-knowledge-exporter/)

