1.1.9 • Published 3 years ago

just-want-pdf v1.1.9

Weekly downloads
13
License
ISC
Repository
github
Last release
3 years ago

Just Want PDF

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

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} />

    ....
1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago