Skip to content

jsPDF Version 2 Planning

Flamenco edited this page Sep 26, 2016 · 2 revisions

Overview

The following document outlines our future development of jsPDF version 2.

New Features

jsPDF V2 aims to support the following features:

  • Transparency
  • Opacity
  • Groups
  • Blending Modes
  • Annotations
  • Custom/Embedded Fonts

Wish List

  • TravisCI test runner
  • StandardJS or another jslint setup
  • Autogenerated docs

Other Planned Changes

Currently, jsPDF generates instructions on-the_fly. It would be much easier to implement, test, and maintain our new features by building a model of the PDF, then generating the instructions during a final rendering stage.

Other Comments

The PDF version generated will be PDF v1.4, as this specification implements most of the target features. Currently, jsPDF V1 generates PDF v1.3

Although some plugins will not be compatible with jsPDF V2, jsPDF V1 will still be actively supported.

#API In order to support the new features, we will be using the HTML Canvas Context2D interface. This has the benefits of using a familiar and documented API, and allows reusing existing HTML canvas compositions. Additional APIs for PDF functionality not available in the Context2D interface is currently to be determined.

Clone this wiki locally