Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/synesenom/netpdf.js
- Owner: synesenom
- License: mit
- Created: 2015-06-09T23:01:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-12T22:11:48.000Z (almost 8 years ago)
- Last Synced: 2024-04-15T04:23:03.585Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 986 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=========
netpdf.js
=========
-------------------------------------
prints a JSON network into a PDF file
-------------------------------------:Author: Enys Mones
:Version: 0.1
:License: MITRequirements
------------- ``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