hummus-reports

1.0.10 • Public • Published

Hummus reports

Hello! This repo hosts an engine that can generate reports. It does that using a PDF library named hummus, and a layout engine that helps with things like text wrapping, image fitting, and provide a json document layout, instead of the hummus command-based api.

Engine documentation

You can find documentaiton on how to use the engine in the documents section of this project. Here's a TOC:

Installation

npm install hummus-reports

Samples

The project has two samples provided:

  1. simple-script - A basic script that generates a PDF file, with assets map example. The output is made to a file.
  2. simple-editor - A simple preview-and-generate server and site, allowing you to quickly edit and preview documents. The output of the PDF is provided directly to the stream, which in turn is used as a data uri in the client code. If you intend to run this project independently make sure to update its reference to this project as it is now relative to this project root.

Development

Folders structure

The folders structure is as follows:

  1. ./index.js - root file for exporting PDFEngine class
  2. ./lib/pdf-engine folder - implementaiton of the pdf engine. root is pdf-engine.js.

Warning! native module ahead

HummusJS is a native module. This means that this code can only be ran on a NodeJS service, and is not a cross-platform javascript module.

Readme

Keywords

Package Sidebar

Install

npm i hummus-reports

Weekly Downloads

1

Version

1.0.10

License

Apache-2.0

Unpacked Size

71.2 kB

Total Files

19

Last publish

Collaborators

  • galkahana