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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ftvuzw-pdf-creator

v1.0.5

Published

jsPDF wrapper – image-to-PDF with header, smart page splitting and signature fields

Readme

ftvuzw-pdf-creator

A premium jsPDF wrapper for generating high-quality PDFs from images. This library is designed for professional reports, featuring automated header generation, smart page splitting, and customizable signature blocks.

✨ Features

  • Smart Page Splitting: Automatically detects white space or uniform backgrounds to split large images across multiple A4 pages without cutting through text or critical content.
  • Professional Headers: Includes document titles, metadata, and branding icons (Base64).
  • Signature Blocks: Supports 0–6 signature fields with calligraphic styling and optional QR code links.
  • Responsive Layout: Handles both Portrait and Landscape orientations based on image aspect ratio.
  • TypeScript Ready: Includes full type definitions for a better developer experience.

🚀 Installation

npm install ftvuzw-pdf-creator jspdf

📖 Usage

import { generatePDF } from 'ftvuzw-pdf-creator';

const options = {
  imageBase64: 'data:image/png;base64,...', // The large image to convert
  title: 'Monthly Performance Report',
  createdBy: 'Technical Dept',
  creationDate: new Date(),
  signatures: [
    { 
      ontopOfLine: 'Alice Developer', 
      underLine: 'Lead Engineer',
      link: 'https://verify.example.com/sig/123' // Optional QR link
    },
    { 
      ontopOfLine: 'Bob Manager', 
      underLine: 'Operations Director' 
    }
  ],
  headerIconBase64: '...', // Optional 320x50 logo
  linkIconBase64: '...',   // Optional top-right icon
  linkIconUrl: 'https://example.com'
};

// Generate the jsPDF instance
const doc = await generatePDF(options);

// Save or output the PDF
doc.save('Report.pdf');

🛠 How to Publish to NPM

Follow these steps to publish updates or the initial version of this package to the NPM registry.

1. Account Setup

Ensure you have an active account on npmjs.com.

2. Build the Distribution Files

The package is written in ESM. You must run the build script to generate the minified dist/index.js and copy the type definitions.

npm run build

3. Login to NPM

Run this command in your terminal and follow the prompts to authenticate:

npm login

4. Update the Version

Before every publish, you must increment the version number in package.json. You can use the built-in NPM command:

npm version patch   # For bug fixes (e.g., 1.0.2 -> 1.0.3)
npm version minor   # For new features (e.g., 1.0.2 -> 1.1.0)
npm version major   # For breaking changes (e.g., 1.0.2 -> 2.0.0)

5. Publish

Finally, push the package to the registry. Since the name ftvuzw-pdf-creator is unique, you can publish it as a public package:

npm publish --access public

6. Verification

Once finished, you can find your package at: https://www.npmjs.com/package/ftvuzw-pdf-creator


License

MIT