1.0.5 • Published 3 years ago

images-to-pdf-package v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

IMAGES TO PDF PACKAGE

A package to convert images to pdf.

Install

npm install images-to-pdf-package

Usage

//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
//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 , i just turned it into a package

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago