AuburnSounds / printed

Generate PDF/SVG/HTML with D, with a Canvas-style API. Now with a flow document emitter.
36 stars 7 forks source link
canvas generation pdf printable svg vector-graphics

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

See features of the 2D renderer...

Goals

How to add as DUB dependency

With dub.sdl:

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

With dub.json:

     "dependencies": { "printed:canvas": "~>1.0" }