{"repo":"yakovmeister/pdf2image","free":true,"listed":false,"github":"https://github.com/yakovmeister/pdf2image","clone":"git clone https://github.com/yakovmeister/pdf2image.git","description":"A utility for converting pdf to image and base64 format.","language":"TypeScript","stars":507,"topics":["pdf-to-image","pdf","graphicsmagick","node-pdf","node-pdf-to-image","node-pdf2img"],"license":"MIT","category":"media-processing","readme_excerpt":"pdf2pic [![Donate][paypal-image]](https://www.paypal.com/cgi-bin/webscr?cmd= donations&business=938FMCPPQG4DQ&currency code=USD&source=url) ![Build Status][github-actions-url] [![NPM Version][npm-image]][npm-url] [ ][npm-url] [![Downloads Stats][npm-downloads]][npm-url] A utility for converting pdf to image, base64 or buffer format. IMPORTANT NOTE: Please support this library by donating via PayPal, your help is much appreciated. Contributors are also welcome! Prerequisites node = 14.x graphicsmagick ghostscript Don't have graphicsmagick and ghostscript yet? Follow this guide to install the required dependencies. Installation Usage Converting specific page of PDF from path, then saving as image file Nuff talk, show me how: More usage example can be found here. pdf2pic API - fromPath(filePath, options) - fromBuffer(buffer, options) - fromBase64(b64string, options) fromPath(filePath, options) Initialize PDF to image conversion by supplying a file path Functions Convert a specific page of the PDF to Image/Base64/Buffer by supplying a file path filePath - pdf file's path options - see options. page - page number to convert to an image convertOptions - see convertOptions. --- Converts PDF to Image/Base64/Buffer by supplying a file path filePath - pdf file's path options - see options. pages - page numbers to convert to image set pages to -1 to convert all pages pages also accepts an array indicating the page number e.g. [1,2,3] also accepts number e.g. 1 convertOptions - see conve","default_branch":null,"files":null,"tree":[],"storefront":"/r/yakovmeister","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/yakovmeister/pdf2image/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}