PHPackages                             bpampuch/pdfmake - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. bpampuch/pdfmake

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

bpampuch/pdfmake
================

Client/server side PDF printing in pure JavaScript

0.2.23(4mo ago)12.3k47.7k↓21.2%2.1k[213 issues](https://github.com/bpampuch/pdfmake/issues)[21 PRs](https://github.com/bpampuch/pdfmake/pulls)MITJavaScriptCI passing

Since Dec 23Pushed 1mo ago237 watchersCompare

[ Source](https://github.com/bpampuch/pdfmake)[ Packagist](https://packagist.org/packages/bpampuch/pdfmake)[ Docs](https://github.com/bpampuch/pdfmake)[ RSS](/packages/bpampuch-pdfmake/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (88)Used By (0)

pdfmake [![Node.js CI](https://github.com/bpampuch/pdfmake/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/bpampuch/pdfmake/actions) [![GitHub](https://camo.githubusercontent.com/72ca2b35d3d6df70a9978d70144e92517e27a094a80be42552b8aaf4f1086e2a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6270616d707563682f7064666d616b652e7376673f636f6c6f72423d304537464246)](https://github.com/bpampuch/pdfmake/releases/latest) [![npm](https://camo.githubusercontent.com/e522d85f1bad830f94d1d4b57eb5197e35ced5c791a5850a4194594e19aba5b1/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f7064666d616b652e7376673f636f6c6f72423d304537464246)](https://www.npmjs.com/package/pdfmake)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#pdfmake---)

PDF document generation library for server-side and client-side in pure JavaScript.

Check out [the playground](http://bpampuch.github.io/pdfmake/playground.html) and [examples](https://github.com/bpampuch/pdfmake/tree/master/examples).

### Features

[](#features)

- line-wrapping,
- text-alignments (left, right, centered, justified),
- numbered and bulleted lists,
- tables and columns
    - auto/fixed/star-sized widths,
    - col-spans and row-spans,
    - headers automatically repeated in case of a page-break,
    - snaking columns (newspaper-style layout where content flows column-to-column),
- images and vector graphics,
- convenient styling and style inheritance,
- page headers and footers:
    - static or dynamic content,
    - access to current page number and page count,
- background-layer,
- page dimensions and orientations,
- margins,
- document sections,
- custom page breaks,
- font embedding,
- support for complex, multi-level (nested) structures,
- table of contents,
- helper methods for opening/printing/downloading the generated PDF,
- setting of PDF metadata (e.g. author, subject).

Documentation
-------------

[](#documentation)

**Documentation URL: **

Source of documentation:  **Improvements are welcome!**

Building from sources
---------------------

[](#building-from-sources)

using npm:

```
git clone https://github.com/bpampuch/pdfmake.git
cd pdfmake
npm install
npm run build

```

using yarn:

```
git clone https://github.com/bpampuch/pdfmake.git
cd pdfmake
yarn
yarn run build

```

License
-------

[](#license)

MIT

Authors
-------

[](#authors)

- [@bpampuch](https://github.com/bpampuch) (founder)
- [@liborm85](https://github.com/liborm85)

pdfmake is based on a truly amazing library [pdfkit](https://github.com/devongovett/pdfkit) (credits to [@devongovett](https://github.com/devongovett)).

Thanks to all contributors.

###  Health Score

68

—

FairBetter than 100% of packages

Maintenance84

Actively maintained with recent releases

Popularity65

Solid adoption and visibility

Community42

Growing community involvement

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 76.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~38 days

Recently: every ~62 days

Total

87

Last Release

127d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68b49868b3a1487e6272819f3b8508cbead8c14b28cb0fd0df48a9c01fd0423f?d=identicon)[liborm85](/maintainers/liborm85)

![](https://www.gravatar.com/avatar/1fcf3778cc9f4d800ed8444e5ce3ec0e608185f13b86cd82b48c6085d607ecca?d=identicon)[miltador](/maintainers/miltador)

---

Top Contributors

[![liborm85](https://avatars.githubusercontent.com/u/1298652?v=4)](https://github.com/liborm85 "liborm85 (1030 commits)")[![bpampuch](https://avatars.githubusercontent.com/u/3721522?v=4)](https://github.com/bpampuch "bpampuch (148 commits)")[![jthoenes](https://avatars.githubusercontent.com/u/15578?v=4)](https://github.com/jthoenes "jthoenes (17 commits)")[![yelouafi](https://avatars.githubusercontent.com/u/5453835?v=4)](https://github.com/yelouafi "yelouafi (17 commits)")[![fe-cj](https://avatars.githubusercontent.com/u/109814122?v=4)](https://github.com/fe-cj "fe-cj (14 commits)")[![manuelpuetz](https://avatars.githubusercontent.com/u/5157315?v=4)](https://github.com/manuelpuetz "manuelpuetz (12 commits)")[![einfallstoll](https://avatars.githubusercontent.com/u/619048?v=4)](https://github.com/einfallstoll "einfallstoll (11 commits)")[![var-bin](https://avatars.githubusercontent.com/u/3194163?v=4)](https://github.com/var-bin "var-bin (9 commits)")[![ardean](https://avatars.githubusercontent.com/u/17138728?v=4)](https://github.com/ardean "ardean (6 commits)")[![birgitta410](https://avatars.githubusercontent.com/u/3180887?v=4)](https://github.com/birgitta410 "birgitta410 (6 commits)")[![danawoodman](https://avatars.githubusercontent.com/u/157695?v=4)](https://github.com/danawoodman "danawoodman (6 commits)")[![miltador](https://avatars.githubusercontent.com/u/17062283?v=4)](https://github.com/miltador "miltador (6 commits)")[![Gilthoniel](https://avatars.githubusercontent.com/u/3636503?v=4)](https://github.com/Gilthoniel "Gilthoniel (5 commits)")[![blikblum](https://avatars.githubusercontent.com/u/3047126?v=4)](https://github.com/blikblum "blikblum (5 commits)")[![antronic](https://avatars.githubusercontent.com/u/2222477?v=4)](https://github.com/antronic "antronic (4 commits)")[![kamilkp](https://avatars.githubusercontent.com/u/5748846?v=4)](https://github.com/kamilkp "kamilkp (4 commits)")[![mjomble](https://avatars.githubusercontent.com/u/2202751?v=4)](https://github.com/mjomble "mjomble (4 commits)")[![vpo-dev](https://avatars.githubusercontent.com/u/60473675?v=4)](https://github.com/vpo-dev "vpo-dev (4 commits)")[![isamu](https://avatars.githubusercontent.com/u/231763?v=4)](https://github.com/isamu "isamu (3 commits)")[![bmihelac](https://avatars.githubusercontent.com/u/13813?v=4)](https://github.com/bmihelac "bmihelac (3 commits)")

---

Tags

pdfjavascriptpdfmake

### Embed Badge

![Health badge](/badges/bpampuch-pdfmake/health.svg)

```
[![Health](https://phpackages.com/badges/bpampuch-pdfmake/health.svg)](https://phpackages.com/packages/bpampuch-pdfmake)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M473](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M493](/packages/mpdf-mpdf)[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M56](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
