MCPcopy Index your code
hub / github.com/bpampuch/pdfmake

github.com/bpampuch/pdfmake @0.3.11 sqlite

repository ↗ · DeepWiki ↗ · release 0.3.11 ↗
751 symbols 2,586 edges 120 files 69 documented · 9%
README

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:

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

MIT

Authors

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

Thanks to all contributors.

Core symbols most depended-on inside this repo

push
called by 379
src/StyleContextStack.js
e
called by 244
dev-playground/public/ace.js
F
called by 196
dev-playground/public/worker-javascript.js
V
called by 168
dev-playground/public/worker-javascript.js
context
called by 125
src/ElementWriter.js
renderPages
called by 101
tests/integration/integrationTestHelper.js
o
called by 87
dev-playground/public/ace.js
layoutDocument
called by 83
src/LayoutBuilder.js

Shape

Function 410
Method 291
Class 50

Languages

TypeScript100%

Modules by API surface

dev-playground/public/worker-javascript.js160 symbols
src/3rd-party/svg-to-pdfkit/source.js88 symbols
src/LayoutBuilder.js52 symbols
src/DocMeasure.js40 symbols
dev-playground/public/ace.js39 symbols
src/DocumentContext.js31 symbols
src/PageElementWriter.js25 symbols
src/qrEnc.js23 symbols
src/ElementWriter.js23 symbols
src/DocPreprocessor.js19 symbols
src/TableProcessor.js17 symbols
src/Renderer.js17 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

@babel/cli7.29.7 · 1×
@babel/core7.29.7 · 1×
@babel/plugin-transform-modules-commonjs7.29.7 · 1×
@babel/preset-env7.29.7 · 1×
@eslint/js10.0.1 · 1×
assert2.1.0 · 1×
babel-loader10.1.1 · 1×
body-parser1.20.2 · 1×
brfs2.0.2 · 1×
browserify-zlib0.2.0 · 1×
buffer6.0.3 · 1×
core-js3.49.0 · 1×

For agents

$ claude mcp add pdfmake \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact