
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@lillallol/merge-pdf
Advanced tools
High level API that uses pdf-lib to merge pdf. Does not use code from other programming languages.
npm install @lillallol/merge-pdf
A high level API to merge pdf.
Code coverage is around 90%.
/**
* @description
* It merges the provided pdf to a single pdf.
*/
export declare const mergePdf: (parameters: mergePdfParameters) => Promise<mergePdfReturnType>;
# mergePdfParameters
export declare type mergePdfParameters = { /** * @description * Path to each pdf to be merged. Throws if any of the paths do not end with * `.pdf`. */ input: string[]; /** * @description * Path to save the merged pdf. Throws if the provided path does not end * with `.pdf` or a file with the same name can be accessed. */ output?: string; };
# mergePdfReturnType
export declare type mergePdfReturnType = { /** * @description * The number of pages of each pdf that got merged. */ numberOfPages: number[]; mergedPdf: PDFDocument; };
# PDFDocument
import type { PDFDocument } from "pdf-lib";
I searched the npm registry for a module that :
because I had to use in one of my own projects (scrap-it), and I could not find one, so I decided to create my own.
Breaking changes
The parameters of mergePdf
are a now a single object, and its return value has a property that holds a reference to the merged pdf document. The latter makes the output path in the parameter object be an optional property.
Other
README.md
.README.md
.Minor internal changes.
Published the package.
MIT
FAQs
High level API that uses pdf-lib to merge pdf. Does not use code from other programming languages.
We found that @lillallol/merge-pdf 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.