# pdf-combine

> There are various tools in the npm that allow for combining pdf's this tool is limited to Mac & Linux but it should work on macs out-of-the-box and on linux by using poppler`s `pdfunite`. This tool is by no means well tested use on own risk!

Latest version **1.0.1** (published 2019-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install pdf-combine
pnpm add pdf-combine
yarn add pdf-combine
bun add pdf-combine
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-05-09 |
| First published | 2019-05-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.6 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Martin Heidegger |
| Maintainers | levelupdevelopment |
| Keywords | pdf |

## Links

- npm: https://www.npmjs.com/package/pdf-combine
- Repository: https://github.com/ryd0rz/pdf-combine
- Homepage: https://github.com/ryd0rz/pdf-combine#readme
- Issues: https://github.com/ryd0rz/pdf-combine/issues
- npm.io page: https://npm.io/package/pdf-combine

## Dependencies (2)

- [fs](https://npm.io/package/fs.md) 0.0.1-security
- [command-exists](https://npm.io/package/command-exists.md) ^1.0.1

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-05-09
- 1.0.0 — 2019-05-09

## README

# pdf-combine

Setup:

brew install poppler

npm install pdf-combine

```javascript

var combinePdfs = require('alternative-pdf-combine')
combinePdfs([
	fs.readFileSync('pdf1.pdf'),
	{file: 'pdf2.pdf'}, // will automatically call fs.readFileSync
	new Buffer('...'),  // will use this buffer
	'...', // will be converted to Buffer using new Buffer(txt)
	{text: '...', encoding: 'utf8'} // will convert the  text to a buffer using new Buffer(obj.text, obj.encoding)
], function (err, combinedBuffer) {
	if (err) {
		console.log(err)
		process.exit(1)
	}
	fs.writeFile('test_out.pdf', combinedBuffer, function (err) {
		if (err) {
			console.log(err)
			process.exit(1)
		}
		console.log(out)
	})
})

```

This uses pdfUnite from the poppler package

---
_Source: https://npm.io/package/pdf-combine · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
