just-want-pdf

1.1.9 • Public • Published

Just Want PDF

NPM Version

Just-Want-PDF is a package to help you to get PDF in node.js envrionment.
Takes in many files, marge them, and output a single PDF result


Demo Here

Accept input file types

.PDF .jpg .jpge .png

Output

Byte Array or Blob Object or File Object

Usage

install package npm i just-want-pdf

import to your project import converter from "just-want-pdf";

Convertion

Assumption

import converter from "just-want-pdf";
var fileList = [File1, File2, File3...];

to byte array const result = converter.toByte(fileList)

to blob const result = converter.toBlob(fileList)

to File const result = converter.toFile(fileList)

for display in iframe

    .....

    var result = convert.toBlob(fileList);
    const url =URL.createObjectURL(result);

    //use iframe to display url

    <iFrame src = {url} />

    ....

Readme

Keywords

Package Sidebar

Install

npm i just-want-pdf

Weekly Downloads

6

Version

1.1.9

License

ISC

Unpacked Size

4.98 kB

Total Files

6

Last publish

Collaborators

  • hicir-tech