Skip to content
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

Latest commit

 

History

History
36 lines (25 loc) · 671 Bytes

File metadata and controls

36 lines (25 loc) · 671 Bytes

doc3rd

MS Word utilities, especially targeted 3GPP

Installation

npm install proj3rd/doc3rd

Parser

Parse MS Word document and extract paragraphs and tables in order.

Usage

import { parse } from 'doc3rd';

const zip = readFileSync('38413-h00.docx');
const parsed = await parse(zip);
  • Returns a list of Paragraphs and Tables in order
  • Paragraph
    • text
    • outlineLevel: Optional
  • Table: Contains a list of Rows
  • Row: Contains a list of Cells
  • Cell: Contains a list of Paragraphs