PDFMergeJS
Merge PDF files into one.
What's new
- PDFMerge is now promise based.
- Better error handling.
Requirements
- Python 3 or above
- PyPDF2 >= 1.21
pip install PyPDF2>=1.21
To install PyPDF2, run Usage
-
Install the module using
npm install pdfmerge
-
Require the module
let PDFMerge = -
PDFMerge(inputFiles, outputFile)
-function
- inputFiles -
Array
: An Array of all the input files - outputFile -
String
: String containing the output filename
- inputFiles -
-
Example code:
error.code
returns :404
- If any or all of the input files are not found1
- If PyPDF2 is not installed