Giter VIP home page Giter VIP logo

rbpdf4j's Introduction

Build Status

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", '')
%><%[email protected]()%>

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", '')
%><%[email protected]()%>

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.

rbpdf4j's People

Contributors

naitoh avatar marutosi avatar hirsaeki-mki avatar ogerman avatar akzhan avatar myabc avatar bmoss avatar edwinmoss avatar shovanj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.