0.1.3 • Published 3 years ago

gcs-pdf-merger v0.1.3

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

Google Storage PDF Merger

Want a small node.js library to easily merge PDFs within a Google Storage Bucket?

Requires Node 8+

NPM

const { Storage } = require("@google-cloud/storage");
const { merge } = require("gcs-pdf-merger");

const storage = new Storage();
const bucket = storage.bucket("bucket-name");

(async () => {
  await merge(bucket, ["A.pdf", "B.pdf", "C.pdf"], "ABC.pdf");
})().catch((err) => {
  console.error(err);
});

Creates the temp pdf directory at /tmp/gcs-pdfs but this can be overidden with:

TEMP_PDF_DIR=/some/path/here
0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago