npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fpdf2pic

v0.5.8

Published

A command line tool for converting PDF to images.

Downloads

53

Readme

fpdf2pic

A command line tool for converting PDF to images.

Build Status license node NPM version Release Date npm download

Prerequisite

Installation

npm i fpdf2pic -g

Usage

# Show help
pdf2pic -h

# Convert a single PDF to the output directory
pdf2pic -i ./test.pdf -o ./tmp/output_dir

# All PDF files to the output directory in the conversion directory
pdf2pic -i ./pdf_file_dir -o ./tmp/output_dir

After installing it, run pdf2pic --help without arguments to see list of options:

fpdf2pic - A command line tool for converting PDF to images.

Usage:
  pdf2pic [options]
  pdf2pic --help
  pdf2pic --version
  pdf2pic -i pdf_path [-o output_path]

Options:
  -h, --help                          Show message.
  -d, --debug                         Show debugging information.
  -v, --version                       Show version.
  -i, --input-path                    To convert the PDF file path, you can be a single file or folder path.
  -o, --output-dir                    the directory to output the images, The default will convert all pages, eg: -o ./pdf_images.
  -P, --page-range                    The page range to convert,  eg: -P 1,3、 -P 1.
  -W, --width                         The max width of the image to be converted, eg: -W 1024.
  -H, --height                        The max height of the image to be converted, eg: -H 768.
  -F, --format                        The format of the image to be converted, eg: -F png.
  -Q, --quality                       The quality of the image to be converted, eg: -Q 80.
  -D, --density                       The density of the image to be converted, eg: -D 300.
  -C, --compression                   The compression method of the image to be converted, eg: -C jpeg.

  By default, fpdf2pic The images will be converted to the folder where the PDF is located when the output path is not specified.

Preview

show help converting

FAQ

install graphicsmagick

See installation.

In Mac OS X, you can simply use Homebrew and do: brew install graphicsmagick

Contribution

If you have any questions or suggestions, please feel free to open an issue or pull request.

License

MIT License © 2022 funnyzak