-
Notifications
You must be signed in to change notification settings - Fork 59
/
Release-Announcement
87 lines (65 loc) · 3.1 KB
/
Release-Announcement
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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 * [email protected]
* Alternate: [email protected]