From: Austin Ziegler Date: 2005-09-10T06:52:15+09:00 Subject: [ANN] PDF::Writer 1.1.3 I am pleased to announce the release of PDF::Writer 1.1.3. This releasefixes margin setting bugs. I again have to thank the wonderful users ofPDF::Writer: * Matthew Thill found a bug with #margins_cm, #margins_mm, and #margins_in. It was reported as #2356 and has been fixed. = What is PDF::Writer for Ruby?It provides the ability to create PDF documents using only native Rubylibraries. There are several demo programs available in the demo/directory. The canonical documentation for PDF::Writer is the 95-pagemanual "manual.pdf", which can be generated using bin/techbook (just"techbook" for RubyGem users) and the manual file "manual.pwd". Homepage:: http://ruby-pdf.rubyforge.org/pdf-writer/Download:: http://rubyforge.org/frs/?group_id=81Copyright:: 2003�2005, Austin Ziegler This software is based on Adobe's PDF Reference, Fifth Edition, version1.6. This and earlier editions are available from Adobe's PDF developerwebsite[1]. == LICENCE NOTESPDF::Writer is generally available under an MIT-style licence with fewrestrictions, but there are subtle restrictions on portions of thelibrary, and there are patents for which some rights have been grantedby Adobe. Please read the file LICENCE[2] for more information. == Requirements and InstallationPDF::Writer requires Ruby 1.8.2 or better, color-tools 1.3.0[3] orbetter, and Transaction::Simple 1.3.0[4] or better. Once these packages are installed, PDF::Writer can be installed with: % ruby setup.rb Alternatively, you can use the RubyGems version of PDF::Writer availableas pdf-writer-1.1.3.gem from the usual sources. The gem knows itsdependencies on Transaction::Simple and color-tools and offers toinstall them. == Demo ProgramsThe demo programs are available as a separately downloadable package. IfPDF::Writer has been installed with RubyGems, then the demos will need to berun explicitly referencing RubyGems: % ruby -rubygems chunkybacon.rb == Whet your appetite: # This is demo/hello.rb. require 'pdf/writer' pdf = PDF::Writer.new pdf.select_font "Times-Roman" pdf.text "Hello, Ruby.", :font_size => 72, :justification => :center pdf.save_as("hello.pdf") # This is demo/chunkybacon.rb. require 'pdf/writer' pdf = PDF::Writer.new pdf.select_font "Times-Roman" pdf.text "Chunky Bacon!!", :font_size => 72, :justification => :center i0 = pdf.image "../images/chunkybacon.jpg", :resize => 0.75 i1 = pdf.image "../images/chunkybacon.png", :justification => :center, :resize => 0.75 pdf.image i0, :justification => :right, :resize => 0.75 pdf.text "Chunky Bacon!!", :font_size => 72, :justification => :center pdf.save_as("chunkybacon.pdf") == PDF::Writer 1.1.3: September 9, 2005* Fixed #2356 submitted by Matthew Thill. Margins set by the various margins methods would behave incorrectly. -austin1: http://partners.adobe.com/public/developer/pdf/index_reference.html2: http://ruby-pdf.rubyforge.org/pdf-writer/licence.html3: http://rubyforge.org/frs/?group_id=2954: http://rubyforge.org/frs/?group_id=81--Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca