🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

pdf-thumbnails-generator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdf-thumbnails-generator

Library to generate thumbnails from given pdf

1.0.6
latest
Source
npm
Version published
Weekly downloads
82
-33.87%
Maintainers
1
Weekly downloads
 
Created
Source

⭐️ pdf-thumbnails-generator · Test and Build NPM publish CD workflow

  • es6 module
  • generates individual page thumbnails for provided pdf file
  • base64 image
  • returns a promise based function

📦 Getting Started

npm install pdf-thumbnails-generator

🚦 Arguments

OptionTypeDescription
pdf_sourceStringPDF file source
thumbnail_sizeIntegerDesired width of pdf thumbnail eg:- 150

📦 Usage

import generatePdfThumbnails from 'pdf-thumbnails-generator';

async function generateThumbnails() {
    try {
        const thumbnails = await generatePdfThumbnails(pdf_source, thumbnail_size);
        console.log(thumbnails);
    } catch (err) {
        console.error(err);
    }
}

🚀 Example

Click Here

Keywords

pdfjs

FAQs

Package last updated on 12 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts