🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

merge-multiple-pdfs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

merge-multiple-pdfs

It can merge multiple pdf files into one.

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
20
-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

MergePDFs

Merge multiple PDF Files into a single PDF document by providing direct path array or folder path

Syntax

appendPdf(filesPathArray, outputPath);

filesPathArray is expected to be an array of files (must be full path for each respective file).

appendPdfFromFolder(folderPath, outputPath);

folderPath is expected to be an path of folder containing all the files (must be full path for each respective folder).

Examples

const mergePDFs = require('merge-multiple-pdfs');

const filesPathArray = [
	`${__dirname}/1.pdf`,
	`${__dirname}/2.pdf`
];
//Save as new file
mergePDFs.appendPdf(filesPathArray, `${__dirname}/output.pdf`);


const folderPath = `${__dirname}/allPdf`;
//Save as new file
mergePDFs.appendPdfFromFolder(folderPath, `${__dirname}/output.pdf`);

Keywords

pdf

FAQs

Package last updated on 06 Mar 2020

Did you know?

Socket

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.

Install

Related posts