Skip to content

thinreports/thinreports-examples

Repository files navigation

Thinreports Examples

The official examples for Thinreports.

日本語版 »

Features

Here are some sample codes on how to use the Generator to insert values dynamically using the text block tool. The samples include basic usage, date and number formatting and text formatting.

Here are some sample codes on how to use the Generator to insert images dynamically using the image block tool.

Thinreports is a utility that offers a “simple event model” for generating reports. By using events, full reports can be generated more efficiently by centralizing and sharing common functionalities.

Methods for generating a single report with different page sizes and different layouts is outlined here.

Thinreports offers list layout functions, which handles page breaks automatically when content overflows the page. Methods for generating a simple list document with a footer is outlined.

Methods for encrypting, setting password locks and setting security and restrictions for the generated PDF document is outlined.

Usage Examples

The links provide the source code to a simple task management application using Rails and Thinreports. The thinreports-rails gem is used in these projects.

Examples for using the “Image Block” functionality of 0.7.0 and Google Chart API in order to insert graphs and QR codes into the report.

Examples for using the “Image Block” functionality of 0.7.0 and the barcode generation library barby to dynamically insert simple bar codes into the report.

Example of a typical estimate form.