# pdf-image-pack

> pack to png from images

Latest version **0.0.1** (published 2014-05-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install pdf-image-pack
pnpm add pdf-image-pack
yarn add pdf-image-pack
bun add pdf-image-pack
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-05-06 |
| First published | 2014-05-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | suisho |
| Maintainers | suisho |

## Links

- npm: https://www.npmjs.com/package/pdf-image-pack
- Repository: git@github.com:suisho/pdf-image-pack
- Homepage: https://github.com/suisho/pdf-image-pack
- Issues: https://github.com/suisho/pdf-image-pack/issues
- npm.io page: https://npm.io/package/pdf-image-pack

## Dependencies (3)

- [pdfkit](https://npm.io/package/pdfkit.md) ^0.6.1
- [defaults](https://npm.io/package/defaults.md) ^1.0.0
- [image-size](https://npm.io/package/image-size.md) ^0.2.3

## Recent versions

- 0.0.1 (latest) — 2014-05-06

## README

# PDF Image Pack
Create conclude some images PDF slide for node.js.
PDF generated by [PDFKit](http://pdfkit.org/)

# Usage

```js
var PDFImagePack = require("pdf-image-pack")

var imgs = [
  "./fixture/basic/a.png",
  "./fixture/basic/b.png",
]
var output = "./tmp/out.pdf"
var slide = new PDFImagePack()
slide.output(imgs, output, function(err, doc){
  console.log("finish output")
})

```


# API

## new PDFImagePack([optoon])
- construction
- options
  - option for PDFKit

## PDFImagePack.createDoc(images)
- return pdf slide object with pdfkit
- images
  - images path array

## PDFImagePack.output(images, output, callback)
- output pdf slide file
- images {Array}
  - images path array
- output {String | Stream}
  - output destination.
  - if string, use as output path
- callback {Function}

---
_Source: https://npm.io/package/pdf-image-pack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
