+1
-1
| { | ||
| "name": "pdfnative", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "Zero-dependency native PDF generation library. 16 scripts (Arabic, Hebrew, Thai, CJK, Devanagari, Bengali, Tamil, Cyrillic, Greek, Georgian, Armenian, Latin), BiDi, PDF/A-1b/2b/3b, AES encryption, digital signatures, AcroForm, barcodes, SVG. Pure JavaScript ISO 32000-1 implementation.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
+64
-0
@@ -13,2 +13,4 @@ # pdfnative | ||
| [](https://pdfnative.dev) | ||
| [](https://www.npmjs.com/package/pdfnative-mcp) | ||
| [](https://www.npmjs.com/package/pdfnative-cli) | ||
@@ -48,2 +50,4 @@ Pure native PDF generation library — zero vendor dependencies. ISO 32000-1 (PDF 1.7) compliant. | ||
| - **No telemetry, no network calls** — verifiable in source. The library never opens a socket, fetches remote fonts, or phones home | ||
| - **AI client integration** — use pdfnative from Claude Desktop, Cursor, Continue, and Zed via [`pdfnative-mcp`](https://github.com/Nizoka/pdfnative-mcp) | ||
| - **Command-line interface** — render, sign, and inspect PDFs from the shell with [`pdfnative-cli`](https://github.com/Nizoka/pdfnative-cli) — zero-config, scriptable, ideal for CI/CD pipelines | ||
@@ -809,2 +813,62 @@ ## Installation | ||
| ## Ecosystem | ||
| pdfnative ships as a library, but two official companion packages cover the most common non-library use cases. Both live in separate repositories and depend on `pdfnative` only through the public API. | ||
| ### pdfnative-cli — command-line interface | ||
| [`pdfnative-cli`](https://github.com/Nizoka/pdfnative-cli) is the **official CLI**. It exposes three commands — `render`, `sign`, `inspect` — for use in shell scripts, Makefiles, GitHub Actions, and Docker images. Zero extra runtime dependencies, npm-provenance-signed. | ||
| ```bash | ||
| # render a JSON document spec to PDF | ||
| npx pdfnative-cli render document.json --output report.pdf | ||
| # sign an existing PDF (RSA or ECDSA, CMS/PKCS#7) | ||
| npx pdfnative-cli sign report.pdf --cert cert.pem --key key.pem --output signed.pdf | ||
| # inspect a PDF (page count, metadata, fonts, signatures) | ||
| npx pdfnative-cli inspect signed.pdf | ||
| ``` | ||
| See the [CLI Guide](https://pdfnative.dev/guides/cli.html) for full reference, security model, and pipeline examples. | ||
| ### pdfnative-mcp — Model Context Protocol server | ||
| [`pdfnative-mcp`](https://github.com/Nizoka/pdfnative-mcp) is a **Model Context Protocol server** that bridges pdfnative to any MCP-compatible AI client. Once configured, your AI assistant can generate PDFs, embed barcodes, create forms, sign documents, and render international text — all without writing code. | ||
| ```bash | ||
| npx -y pdfnative-mcp | ||
| ``` | ||
| ### Available tools | ||
| | Tool | Purpose | | ||
| |------|---------| | ||
| | `generate_basic_pdf` | Multi-page documents from structured blocks (headings, paragraphs, lists) | | ||
| | `add_table` | Tabular reports from column headers and data rows | | ||
| | `add_barcode` | QR Code, Code 128, EAN-13, Data Matrix, PDF417 | | ||
| | `add_international_text` | 16 non-Latin scripts with BiDi & OpenType shaping | | ||
| | `add_form` | Interactive AcroForm PDFs (text, checkbox, radio, dropdown) | | ||
| | `embed_image` | Embed a JPEG or PNG image (base64) | | ||
| | `prepare_signature_placeholder` | PDF with a `/Sig` field ready to be signed | | ||
| | `sign_pdf` | CMS/PKCS#7 digital signatures (RSA-SHA256 / ECDSA-SHA256) | | ||
| ### Claude Desktop configuration | ||
| ```json | ||
| { | ||
| "mcpServers": { | ||
| "pdfnative": { | ||
| "command": "npx", | ||
| "args": ["-y", "pdfnative-mcp"], | ||
| "env": { | ||
| "PDFNATIVE_MPC_OUTPUT_DIR": "/Users/you/Documents/mcp-pdfs" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| ``` | ||
| See the [MCP Integration Guide](https://pdfnative.dev/guides/mcp.html) and the [pdfnative-mcp repository](https://github.com/Nizoka/pdfnative-mcp) for configuration on Cursor, Continue, Zed, and more. | ||
| ## Architecture | ||
@@ -811,0 +875,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
61891602
0.01%56395
0.01%1192
5.67%