Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 1.27 KB

File metadata and controls

56 lines (41 loc) · 1.27 KB
title Quick Start: Node.js
description Use EdgeParse with Node.js via native NAPI-RS bindings.

Installation

npm install edgeparse

Requirements: Node.js 18+ · No additional system dependencies.

Parse a PDF

import { convert } from "edgeparse";

// Get Markdown string
const markdown = convert("document.pdf", { format: "markdown" });
console.log(markdown);

// Get structured JSON string
const json = convert("document.pdf", { format: "json" });

// Get HTML string
const html = convert("document.pdf", { format: "html" });

With Options

import { convert } from "edgeparse";

const result = convert("document.pdf", {
  format: "markdown",
  pages: "1-5",
  tableMethod: "cluster",
});

Output Formats

Format Description
"markdown" Clean Markdown with table support
"json" Structured JSON with full metadata
"html" Semantic HTML
"text" Plain text (reading order)

Next Steps