# libqpdf

> libqpdf native binding for nodejs

Latest version **0.1.1** (published 2018-03-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install libqpdf
pnpm add libqpdf
yarn add libqpdf
bun add libqpdf
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2018-03-14 |
| First published | 2018-03-10 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 2 |
| Author | Tobias Hoffmann |
| Maintainers | smilingthax |
| Keywords | libqpdf, qpdf, pdf |

## Links

- npm: https://www.npmjs.com/package/libqpdf
- Repository: https://github.com/smilingthax/node-libqpdf
- Issues: https://github.com/smilingthax/node-libqpdf/issues
- npm.io page: https://npm.io/package/libqpdf

## Dependencies (2)

- [nan](https://npm.io/package/nan.md) ^2.9.2
- [node-gyp](https://npm.io/package/node-gyp.md) ^3.6.2

## 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

- 0.1.1 (latest) — 2018-03-14
- 0.1.0 — 2018-03-10

## README

libqpdf native binding for nodejs
===

Based on https://github.com/qpdf/qpdf (version 8.0.2).

The interface deliberately follows the C++ interface, no attempt to
JS-ify the interface is made, except that std::vector is mapped to a JS Array
and std::set / std::map is a Set / Map.

Methods returning a std::string in C++ will return a JS Buffer or a JS String,
depending on what seems to be more appropriate in the particular case.

As JS can only represent integers up to 2**53 accurately,
QPDFObjectHandle::getIntValue (returns 64 bit integer) is not wrapped.
Use QPDFObjectHandle::getNumericValue().

TODO:

- add more methods of QPDFObjectHandle
- QPDFObjectHandle::parse from Buffer
- create wrappers for QPDF and QPDFWriter (esp. io/streaming [note: reader needs random access])

#### Specials:
npm run install --with-libjpeg
(requires -ljpeg to be available)

---

Copyright (c) 2018 Tobias Hoffmann

License: https://opensource.org/licenses/Apache-2.0

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