Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 441 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 441 Bytes

pdf-metadata

Extract metadata, pages and read time from pdf file.

Install

npm install pdf-metadata

Example usage

typescript async with pdf file in a server

import { extractMetadataAndPages } from 'pdf-metadata';

const fileUrl = 'https://litterarum.onrender.com/api/v1/files/las-mil-y-una-noches.pdf'
const info = await extractMetadataAndPages(fileUrl);
console.log(info) // Here we got metadata