Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

pdfmake

> 编程语言
Open source

Client/server side PDF printing in pure JavaScript

12.3K stars0 likes2 views
WebsiteGitHub

About

Client/server side PDF printing in pure JavaScript

pdfmake Node.js CI GitHub npm

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

Check out the playground and examples.

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 URL: https://pdfmake.github.io/docs/

Source of documentation: https://github.com/pdfmake/docs Improvements are welcome!

Building from sources

using npm:

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

using yarn:

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

License

MIT

Authors

  • @bpampuch (founder)
  • @liborm85

pdfmake is based on a truly amazing library pdfkit (credits to @devongovett).

Thanks to all contributors.

Issues· 237 open

View all issuesOpen on GitHub
  • #2944

    Playground is down

    Updated Sep 21, 2026
  • #207

    No support for multi-page unbreakableBlocks

    bugfeature requesttableUpdated Sep 10, 2026
  • #2947

    Table cell background fills inside an unbreakable block are painted in reverse order

    Updated Aug 30, 2026
  • #2941

    NOT OPENING SHOWING FORBIDDEN

    Updated Aug 4, 2026
  • #2226

    Table of Content - dots / dashed line between text and number

    tocUpdated May 14, 2026
  • #184

    Right to left language (RTL)

    feature requeststylesfonttextUpdated May 11, 2026
  • #2731

    "Non-wrappable" text does not break when column width in table is *

    tableUpdated Apr 13, 2026
  • #2832

    fillColor of nested tables not being applied when unbreakable is true

    tablepageUpdated Apr 2, 2026
  • #2925

    The "verticalAlignment" property cannot be correctly applied to the second page.

    bugtableUpdated Mar 17, 2026
  • #2267

    Need to show a border bottom on the last row of the table of the page

    tableUpdated Mar 16, 2026

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言