Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pdfmake

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfmake

Client/server side PDF printing in pure JavaScript

  • 0.2.15
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is pdfmake?

The pdfmake npm package is a server-side and client-side library for generating PDF documents from a JSON-based structure. It provides a declarative API that allows developers to layout text, images, vectors, and other elements in a PDF document.

What are pdfmake's main functionalities?

Text and Typography

This feature allows you to add text to your PDF with various typography settings such as font size, style, and weight.

{"content": [{"text": "Hello World", "style": "header"}], "styles": {"header": {"fontSize": 18, "bold": true}}}

Lists

With this feature, you can create ordered and unordered lists within your PDF document.

{"content": [{"ul": ["Item 1", "Item 2", "Item 3"]}]}

Tables

This feature allows you to insert tables into your PDF, with customizable rows, columns, and styling.

{"content": [{"table": {"body": [["Column 1", "Column 2", "Column 3"], ["Value 1", "Value 2", "Value 3"]]}}]}

Images

This feature enables you to embed images in your PDF documents, with support for various formats and base64 encoded sources.

{"content": [{"image": "data:image/jpeg;base64,...", "width": 200}]}

Vector Graphics

With vector graphics, you can draw shapes and paths to create custom illustrations and designs in your PDF.

{"content": [{"canvas": [{"type": "rect", "x": 0, "y": 0, "w": 100, "h": 100, "color": "#E53935"}]}]}

Other packages similar to pdfmake

Keywords

FAQs

Package last updated on 02 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc