Socket
Socket
Sign inDemoInstall

pdf-thumbnails-generator

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    pdf-thumbnails-generator

Library to generate thumbnails from given pdf


Version published
Weekly downloads
179
decreased by-8.21%
Maintainers
1
Install size
365 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 12 Nov 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc