[ANN] PDF::Writer 1.1.3



I am pleased to announce the release of PDF::Writer 1.1.3. This release
fixes margin setting bugs. I again have to thank the wonderful users of
PDF::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 Ruby
libraries. There are several demo programs available in the demo/
directory. The canonical documentation for PDF::Writer is the 95-page
manual "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=81
Copyright:: 2003�2005, Austin Ziegler

This software is based on Adobe's PDF Reference, Fifth Edition, version
1.6. This and earlier editions are available from Adobe's PDF developer
website[1].

== LICENCE NOTES
PDF::Writer is generally available under an MIT-style licence with few
restrictions, but there are subtle restrictions on portions of the
library, and there are patents for which some rights have been granted
by Adobe. Please read the file LICENCE[2] for more information.

== Requirements and Installation
PDF::Writer requires Ruby 1.8.2 or better, color-tools 1.3.0[3] or
better, 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 available
as pdf-writer-1.1.3.gem from the usual sources. The gem knows its
dependencies on Transaction::Simple and color-tools and offers to
install them.

== Demo Programs
The demo programs are available as a separately downloadable package. If
PDF::Writer has been installed with RubyGems, then the demos will need to be
run 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.

-austin
1: http://partners.adobe.com/public/developer/pdf/index_reference.html
2: http://ruby-pdf.rubyforge.org/pdf-writer/licence.html
3: http://rubyforge.org/frs/?group_id=295
4: http://rubyforge.org/frs/?group_id=81
--
Austin Ziegler * halostatue@xxxxxxxxx
* Alternate: austin@xxxxxxxxxxxxx


Relevant Pages

  • Re: PLEASE HELP WITH MARGINS--Daiyas "Booklets in MacWord" page with imposition software-
    ... As far as splitting the PDF into multiple sections based on sections, ... I also figured out what was happening with the original document margins. ... When I go to the print window and see the document in the "quick ... If you have time, I should have a chance to update my CocoaBooklet, ...
    (microsoft.public.mac.office.word)
  • Re: Outlook Toolbar Issue
    ... " Edit the registry to keep it from loading ... Expand 'Create Adobe PDF" and click on the Microsoft Outlook entry then ... You may need to provide your Acrobat disk or installation media to ...
    (microsoft.public.office.setup)
  • Re: PLEASE HELP WITH MARGINS--Daiyas "Booklets in MacWord" page with imposition software-
    ... Your printer can't print all the way to the edge, so the header/footer margins should be big enough to block out the area that your printer can't print on anyhow. ... The footer text fits between the footer margin and the bottom margin. ... same settings don't seem to be working once again. ... As far as splitting the PDF into multiple sections based on sections, ...
    (microsoft.public.mac.office.word)
  • Re: PLEASE HELP WITH MARGINS--Daiyas "Booklets in MacWord" page with imposition software-
    ... As far as splitting the PDF into multiple sections based on sections, ... I also figured out what was happening with the original document margins. ... When I go to the print window and see the document in the "quick ... my document was formatted for the custom paper size, ...
    (microsoft.public.mac.office.word)
  • Re: Long Webpage tables dont keep same formatting when printed
    ... Good advice on the pdf i think...I was thinking I would have to manually ... when in fact I would still only be updating the Publisher 2007 ... I tried making the default width of the publication 700px wide and that is ... relatively easy to move your content within the margins. ...
    (microsoft.public.publisher.webdesign)