Skip to main content

PPTX files

This example goes over how to load data from PPTX files. By default, one document will be created for all pages in the PPTX file.

Setup

npm install officeparser

Usage, one document per page

import { PPTXLoader } from "langchain/document_loaders/fs/pptx";

const loader = new PPTXLoader("src/document_loaders/example_data/example.pptx");

const docs = await loader.load();