PHPackages                             gaomingcode/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. gaomingcode/pdfmake

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

gaomingcode/pdfmake
===================

Client/server side PDF printing in pure JavaScript

0.1.71(4y ago)046MITJavaScript

Since Jun 4Pushed 4y agoCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PDFmake
=======

[](#pdfmake)

[![GitHub Version](https://camo.githubusercontent.com/9c2a0835931181b39a5a06f183f756b62b96b9b6b5c993c76e5c41550c53f1bf/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f67616f6d696e67636f64652f7064666d616b652e737667)](https://github.com/gaomingcode/pdfmake)[![Packagist Downloads](https://camo.githubusercontent.com/d1ca4a3f6c3db6b66b95e7c9007eb539ff3e41da1dab87fe440b7582c3eed552/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f67616f6d696e67636f64652f7064666d616b65)](https://github.com/gaomingcode/pdfmake)[![Github License](https://camo.githubusercontent.com/f3a0d15cfa17ab04c874e1767f78fa7026715383b0d7152bf263346566c656f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f67616f6d696e67636f64652f7064666d616b65)](https://github.com/gaomingcode/pdfmake)

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require gaomingcode/pdfmake

```

ReadMe from Origin
------------------

[](#readme-from-origin)

[![Node.js CI](https://github.com/bpampuch/pdfmake/workflows/Node.js%20CI/badge.svg?branch=master)](https://github.com/bpampuch/pdfmake/actions) [![GitHub](https://camo.githubusercontent.com/b04dc8de541c78dbe5a2ae388935845593136f3a099224f2ed5f9fa6b5a1eb06/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6270616d707563682f7064666d616b652e737667)](https://github.com/bpampuch/pdfmake/releases/latest) [![npm](https://camo.githubusercontent.com/e522d85f1bad830f94d1d4b57eb5197e35ced5c791a5850a4194594e19aba5b1/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f7064666d616b652e7376673f636f6c6f72423d304537464246)](https://www.npmjs.com/package/pdfmake) [![Bower](https://camo.githubusercontent.com/e9abe192b4ed6283a2a64548ff34c0a66123edc1468a19799723a9024f4aedc3/68747470733a2f2f696d672e736869656c64732e696f2f626f7765722f762f7064666d616b652e7376673f636f6c6f72423d304537464246)](https://github.com/bpampuch/pdfmake) [![Packagist](https://camo.githubusercontent.com/17cdd76ab7b2308d4466893b95482f4d992b3880d0aa7df43211145f876e8584/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6270616d707563682f7064666d616b652e7376673f636f6c6f72423d304537464246)](https://packagist.org/packages/bpampuch/pdfmake) [![CDNJS](https://camo.githubusercontent.com/3562b907739de413732195f665e7d14e553744db740ef8dcd61d6300831501d2/68747470733a2f2f696d672e736869656c64732e696f2f63646e6a732f762f7064666d616b652e7376673f636f6c6f72423d304537464246)](https://cdnjs.com/libraries/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).

#### This is unstable master branch for version 0.2.x, for stable version 0.1.x see [branch 0.1](https://github.com/bpampuch/pdfmake/tree/0.1).

[](#this-is-unstable-master-branch-for-version-02x-for-stable-version-01x-see-branch-01)

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

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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.5% 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

Unknown

Total

1

Last Release

1809d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4b333bd44a2f7f526cc29a59b2945b27c7d2f31df68b92c2eb46efbddc032483?d=identicon)[gaomingcode](/maintainers/gaomingcode)

---

Top Contributors

[![liborm85](https://avatars.githubusercontent.com/u/1298652?v=4)](https://github.com/liborm85 "liborm85 (795 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)")[![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)")[![danawoodman](https://avatars.githubusercontent.com/u/157695?v=4)](https://github.com/danawoodman "danawoodman (6 commits)")[![birgitta410](https://avatars.githubusercontent.com/u/3180887?v=4)](https://github.com/birgitta410 "birgitta410 (6 commits)")[![gaomingcode](https://avatars.githubusercontent.com/u/53959161?v=4)](https://github.com/gaomingcode "gaomingcode (6 commits)")[![ardean](https://avatars.githubusercontent.com/u/17138728?v=4)](https://github.com/ardean "ardean (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)")[![bmihelac](https://avatars.githubusercontent.com/u/13813?v=4)](https://github.com/bmihelac "bmihelac (3 commits)")[![tsiegleauq](https://avatars.githubusercontent.com/u/10233032?v=4)](https://github.com/tsiegleauq "tsiegleauq (3 commits)")

---

Tags

pdfjavascriptpdfmake

### Embed Badge

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

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

###  Alternatives

[bpampuch/pdfmake

Client/server side PDF printing in pure JavaScript

12.3k47.7k](/packages/bpampuch-pdfmake)[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)

PHPackages © 2026

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