Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/synesenom/netpdf.js

prints a JSON network into a PDF file
https://github.com/synesenom/netpdf.js

Last synced: 4 days ago
JSON representation

prints a JSON network into a PDF file

Awesome Lists containing this project

README

        

=========
netpdf.js
=========
-------------------------------------
prints a JSON network into a PDF file
-------------------------------------

:Author: Enys Mones
:Version: 0.1
:License: MIT

Requirements
------------

- ``node.js`` to run javascript in the terminal.
- node.js packages: ``vm``, ``d3``, ``fs``, ``jsdom``, ``sys``.
- ``librsvg`` to convert svg to pdf.
- ``inkscape`` also for conversion from svg to pdf (if rsvg fails).
- ``pdfcrop`` to remove margins.

Install
-------

Just install ``node.js`` and the other packages.

Input
-----

The network in JSON format (see airlines.json in the test folder).

Output
------

A PDF of the network.

Credits to
----------

http://www.pyktech.com/blog/150/

http://mango-is.com/blog/engineering/pre-render-d3-js-charts-at-server-side.html