
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
combine-multiple-pdfs
Advanced tools
Combine or Merge multiple Pdfs into single a Pdf
I needed a simple way to combine multiple pdf files into a single pdf file.
$ npm i combine-multiple-pdfs -S
Take a look into the usage section for a detailed example.
Note: you can also use the default export.
This function Takes Array of file paths and converted into a sigle new buffer.
Returns a new pdf file buffer.
const newBuffer = combinePdfs(data, options);
data files path
An example how to use it.
const { combinePdfs } = require("combine-multiple-pdfs");
/* or */
const combinePdfs = require("combine-multiple-pdfs");
let data = ["./dummy.pdf", "./dummy1.pdf"];
/* Minimum two files required */
let options = { outName: "mergedPdf", outPath: "./public" };
let newFileBuffer = combinePdfs(data, options);
FAQs
Merge multiple pdfs into a single pdf
The npm package combine-multiple-pdfs receives a total of 3 weekly downloads. As such, combine-multiple-pdfs popularity was classified as not popular.
We found that combine-multiple-pdfs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.