# images-to-pdf-package

> A package to convert images to pdf

Latest version **1.0.5** (published 2021-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install images-to-pdf-package
pnpm add images-to-pdf-package
yarn add images-to-pdf-package
bun add images-to-pdf-package
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-11-07 |
| First published | 2021-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 (+12 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Whirl21 |
| Maintainers | whirl21 |
| Keywords | pdf, images, image-to-pdf, images-to-pdf |

## Links

- npm: https://www.npmjs.com/package/images-to-pdf-package
- Repository: https://github.com/Whirl21/images-to-pdf
- Homepage: https://github.com/Whirl21/images-to-pdf#readme
- Issues: https://github.com/Whirl21/images-to-pdf/issues
- npm.io page: https://npm.io/package/images-to-pdf-package

## Dependencies (1)

- [jspdf](https://npm.io/package/jspdf.md) ^2.4.0

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2021-11-07
- 1.0.4 — 2021-11-07
- 1.0.3 — 2021-11-07
- 1.0.2 — 2021-11-07
- 1.0.1 — 2021-11-06
- 1.0.0 — 2021-11-06

## README

## IMAGES TO PDF PACKAGE

> A package to convert images to pdf.

#### Install

```bash
npm install images-to-pdf-package
```

#### Usage

```typescript
//typescript or esmodules
import ImagesToPdfPackage from "images-to-pdf-package";
const image_object1 = {
  src: "",
  height: "",
  imageType: "",
  width: "",
};
const image_object2 = {
  src: "",
  height: "",
  imageType: "",
  width: "",
};

const arrayOfImages = [image_object1, image_object2];

ImagesToPdfPackage(
  arrayOfImages,
  "bloburi" /* all types available here - http://raw.githack.com/MrRio/jsPDF/master/docs/jsPDF.html#output*/,
  false
); //if you want to save the pdf then set false to true and add another argument containing the name of the pdf
```

```javascript
//nodejs
const ImagesToPdfPackage = require("images-to-pdf-package");
const image_object1 = {
  src: "",
  height: "",
  imageType: "",
  width: "",
};
const image_object2 = {
  src: "",
  height: "",
  imageType: "",
  width: "",
};

const arrayOfImages = [image_object1, image_object2];

ImagesToPdfPackage(
  arrayOfImages,
  "bloburi" /* all types available here - http://raw.githack.com/MrRio/jsPDF/master/docs/jsPDF.html#output*/,
  false
); //if you want to save the pdf then set false to true and add another argument containing the name of the pdf
```

###### Credits

this guy made this [thing](https://github.com/pixochi/pdf-from-images-react-app) , i just turned it into a package

## License

MIT

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