printed 1.3.4

Low-level API to generate self-contained PDF/SVG/HTML documents suitable for print


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

printed

A simple Canvas API to generate self-contained PDF/SVG/HTML documents suitable for print.

printed provides an immediate graphical context API for drawing vectorial content inside a multi-page PDF, HTML or SVG. It is intended to provide a barebones API, and need text-aware APIs on top of it.

Its API is similar to the HTML5 Canvas 2D API.

The ultimate goal would be to generate technical documentation or user manuals with it, but for that you would need a text layout library.

Features

  • [x] TrueType and OpenType font embedding in order to have fully reproducible vectors
  • [x] PDF 1.4 output
  • [x] SVG 1.1 output
  • [x] HTML5 output through SVG embedding

See features of the 2D renderer...

Goals

  • Simplicity
  • Reproducibility
  • Common denominator API, support many vectorial formats before being a rich API.

How to add as DUB dependency

With dub.sdl:

dependency "printed:canvas" version="~>1.0"

With dub.json:

     "dependencies": { "printed:canvas": "~>1.0" }
Sub packages:
printed:font, printed:canvas, printed:htmlcolors, printed:flow
Dependencies:
printed:htmlcolors, printed:canvas, printed:font
Versions:
1.3.5 2024-Aug-05
1.3.4 2024-Aug-04
1.3.3 2023-Feb-03
1.3.2 2023-Jan-07
1.3.1 2022-Oct-04
Show all 40 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 3 downloads this month

  • 514 downloads total

Score:
1.7
Short URL:
printed.dub.pm