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

pdfstamp

v1.1.0

Published

A cli tool to stamp PDF's, using (ImageMagick and pdftk)

Downloads

41

Readme

pdfstamp

NPM Version License Downloads/week Github Issues

Easily add image signatures like signature.png to an existing pdf.

Features

  • Perfectly preserves form fields and formatting
  • Can add to specific page in long PDF
  • Can resize and position signature

Get Started

  1. Install this tool using: npm i -g pdfstamp.
  2. You need both: (ImageMagick and pdftk) Run pdfstamp doctor to see if you have them!

Usage

Usage: pdfstamp [options] [command]

Options:
  -h, --help       display help for command

Commands:
  doctor           Checks to make sure your dependencies are installed
  stamp [options]  Stamps the pdf document
  help [command]   display help for command

Using as a JS lib

import { stamp } from 'pdfstamp';

async function StampThat() {
  await stamp({
    signature: './signature.png',
    input: './sample.pdf',
    output: './output-example-lib.pdf'
  })
}

Stamping

Usage: pdfstamp stamp [options]

Stamps the pdf document

Options:
  -i, --input <inputPdfPath>       Input document, e.g: file.pdf
  -s, --signature <signaturePath>  Signature file, e.g: signature.png
  -p, --page <pageNum>             Page to input the signature, default: 1 (default: 1)
  -o, --output <outputPdfPath>     Output stamped document, default: output.pdf (default: "output.pdf")
  -l, --left <leftAmount>          Signature position from page left (px), e.g: 120
  -r, --right <rightAmount>        Signature position from page right (px), e.g: 120
  -t, --top <topAmount>            Signature position from page top (px), e.g: 120
  -b, --bottom <bottomAmount>      Signature position from page bottom (px), e.g: 120
  -z, --zoom <zoomPercent>         Signature zoom percentage on page (100% is full pagewidth), default: 25 (default: 25)
  --debug                          Keeps temporary PDF files (for development purposes)
  -h, --help                       display help for command

Example

pdfstamp stamp \                                                                                                      
--input ./input.pdf \                                                                                  
--signature ./signature.png \                                                      
--output ./output.pdf \                                
--page 2 \                       
--bottom 300 \
--left 200

output