Sha256: 7b69f875198e657b2e5c29c43e284c18a34ec8976986d779c248f0a9d59b9cb2

Contents?: true

Size: 1.7 KB

Versions: 8

Compression:

Stored size: 1.7 KB

Contents

[![Build Status](https://travis-ci.org/naitoh/rbpdf.svg?branch=master)](https://travis-ci.org/naitoh/rbpdf)

# RBPDF Template Plugin

A template plugin allowing the inclusion of ERB-enabled RBPDF template files.

##
##
## RBPDF Version (The New or UTF8 Version)
##
##

* Use UTF-8 encoding. 
* RTL (Right-To-Left) languages support.
* HTML tag support.
* CSS minimum support.
* Image
 - 8bit PNG image support without RMagick library.
 - PNG(with alpha channel)/JPEG/GIF image support. (use RMagick library)


##
## Installing RBPDF
##

RBPDF is distributed via RubyGems, and can be installed the usual way that you install gems: by simply typing `gem install rbpdf` on the command line. 

==

If you are using image file, it is recommended you install:
```
gem install rmagick
```

RBPDF Example of simple use in .html.erb:

```
<%
  @pdf = RBPDF.new()
  @pdf.set_margins(15, 27, 15)
  @pdf.set_font('FreeSans','', 8)
  @pdf.add_page()
  @pdf.write(5, "text\n", '')
%><%==@pdf.output()%>
```

RBPDF Japanese Example of simple use in .html.erb:
```
<%
  @pdf = RBPDF.new()
  @pdf.set_margins(15, 27, 15)
  @pdf.set_font('kozminproregular','', 8)
  @pdf.add_page()
  @pdf.write(5, "UTF-8 Japanese text.\n", '')
%><%==@pdf.output()%>
```

See the following files for sample of useage:

test_unicode.rbpdf
utf8test.txt
logo_example.png

ENJOY!

License

  The project RBPDF doesn't use same license for all code. There are
  code with:

   * LGPLv2.1+ (GNU Lesser General Public License v2.1 or any later version)

   * MIT (MIT-LICENSE)

  Please, check source code for more details. A license is usually at the start
  of each source file.

  The MIT-LICENSE file (MIT) is the default license for code without an explicitly
  defined license.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbpdf-1.19.8 README.md
rbpdf-1.19.7 README.md
rbpdf-1.19.6 README.md
rbpdf-1.19.5 README.md
rbpdf-1.19.4 README.md
rbpdf-1.19.3 README.md
rbpdf-1.19.2 README.md
rbpdf-1.19.1 README.md