# makepdf

> Opinionated Markdown-to-PDF converter

Latest version **0.1.5** (published 2025-03-11) · MIT license · 0 weekly downloads

## Install

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

Provides the command `makepdf`.

## Health

**Score 30/100 (F)** — status: maintenance-mode.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2025-03-11 |
| First published | 2019-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 55.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Jelmer Cormont |
| Maintainers | typescene, jcormont |
| Keywords | pdf, markdown, pdfmake |

## Links

- npm: https://www.npmjs.com/package/makepdf
- Repository: https://github.com/jcormont/makepdf
- Homepage: https://github.com/jcormont/makepdf#readme
- Issues: https://github.com/jcormont/makepdf/issues
- npm.io page: https://npm.io/package/makepdf

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) 11
- [pdfmake](https://npm.io/package/pdfmake.md) ^0.2.18
- [@ibm/plex](https://npm.io/package/@ibm/plex.md) 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.5 (latest) — 2025-03-11
- 0.1.4 — 2025-03-11
- 0.1.3 — 2025-03-11
- 0.1.2 — 2022-09-01
- 0.1.1 — 2020-02-03
- 0.1.0 — 2019-09-19

## README

# makepdf

This tool converts Markdown documents (with some additional LaTeX-inspired tags) to professional-looking PDF documents, mostly targeted towards software specs and documentation.

Based on the awesome [`pdfmake`](https://github.com/bpampuch/pdfmake) tool, which is itself based on [`pdfkit`](https://github.com/foliojs/pdfkit).

## Samples

The source repository contains sample documents in the `sample/` folder.

This includes a manual that highlights most of the available features. The output for this document can be found in the root folder (see [`manual.pdf`](./manual.pdf)).

## Configuration

Configuration is read from `makepdf.json`, unless an argument is specified on the command line.

Refer to the PDF manual for the configuration format.

## Ideas

Some ideas for improvement:

- Use `.js` files with conventional naming (or defined in the config file) for e.g. headers and footers, adding table styles, post-processing headings, tables, etc. or a hook for the entire document.
- Standard files for front & back matter.
- Produce HTML alongside PDF for 'online help' files.

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