pdf-metadata
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i pdf-metadata

Weekly Downloads

15

Version

2.0.1

License

ISC

Unpacked Size

40.3 kB

Total Files

38

Last publish

Collaborators

  • mandragora-hub