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

https://github.com/thinreports/thinreports-examples

Code examples for Thinreports
https://github.com/thinreports/thinreports-examples

thinreports

Last synced: about 2 months ago
JSON representation

Code examples for Thinreports

Awesome Lists containing this project

README

        

# Thinreports Examples

The official examples for Thinreports.

[English »](https://github.com/thinreports/thinreports-examples/blob/master/README.md)

## Features

### [TextBlock tool](https://github.com/thinreports/thinreports-examples/tree/master/text-block)

[Generator](http://www.thinreports.org/) から動的な値を挿入可能なテキストブロックツールの使い方サンプルです。基本的な使い方から、日付時刻書式や数値書式、字詰め書式などの簡易書式についても解説しています。

### [ImageBlock tool](https://github.com/thinreports/thinreports-examples/tree/master/image-block)

[Generator](http://www.thinreports.org/) から動的な画像を挿入可能なイメージブロックツールの使い方サンプルです。

### [Use external character](https://github.com/thinreports/thinreports-examples/tree/master/eudc)

`0.7.0` より、PDFに外字を表示・埋め込むことが可能になりました。そのコード例と外字フォントのセットアップ方法について解説しています。

### [Use Event](https://github.com/thinreports/thinreports-examples/tree/master/event)

Thinreportsでは、帳票の生成ユーティリティとして「簡易イベントモデル」を提供しています。イベントを使うことにより、共通の処理を一元化したり、総ページ数の描画やさまざまな使い方が可能です。

### [Use multiple layouts](https://github.com/thinreports/thinreports-examples/tree/master/multiple-layout)

用紙サイズの異なる帳票やレイアウトの異なる帳票などを組み合わせて一つの帳票を作成する方法を解説しています。

### [List](https://github.com/thinreports/thinreports-examples/tree/master/list)

Thinreportsでは、一覧表を一つの機能として提供しており最大行数を超えた場合の自動改ページ機能もサポートしています。基本的な一覧表からページフッター/フッターを使った高度な一覧表について解説しています。

### [PDF Security](https://github.com/thinreports/thinreports-examples/tree/master/permission)

生成するPDFの暗号化/パスワードロック/操作制限等のセキュリティを設定する方法について解説しています。

## Usage Examples

### [Rails Example](https://github.com/thinreports/thinreports-rails-example)

RailsとThinreportsを使った簡単なタスク管理アプリケーションのソースコードです。 [thinreports-rails](https://github.com/takeshinoda/thinreports-rails) も使っています。

### [Embed graph using GoogleChartAPI](https://github.com/thinreports/thinreports-examples/tree/master/chart)

`0.7.0` の新機能「イメージブロック」と [Google Chart API](https://developers.google.com/chart/) を使って各種グラフやQRコードを埋め込む例です。

### [Embed barcode](https://github.com/thinreports/thinreports-examples/tree/master/barcode)

`0.7.0` の新機能「イメージブロック」とRubyのバーコード生成ライブラリ [barby](http://toreto.re/barby/) を使って、基本的なバーコードを動的に生成する例です。

### [Estimate](https://github.com/thinreports/thinreports-examples/tree/master/estimate-ja)

ヘッダー部と一覧部を持つ、一般的な見積書のサンプルです。