combine-pdfs
v1.0.0
Published
Combine multiple PDFs into one.
Downloads
257
Readme
combine-pdfs
Combine multiple PDFs into one.
Install
npm install combine-pdfs
Usage
const { promises: fs } = require("fs");
const combinePdfs = require("combine-pdfs");
await fs.writeFile("output.pdf", await combinePdfs([
await fs.readFile("file.pdf"),
await fs.readFile("file2.pdf")
]));
API
combinePdfs(pdfs)
pdfs
Type: Array<string | Uint8Array | ArrayBuffer | Buffer>
The PDFs to combine.