pdf-writer 1.1.5 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/pdf/charts/stddev.rb +1 -1
- data/lib/pdf/quickref.rb +1 -1
- data/lib/pdf/simpletable.rb +1 -1
- data/lib/pdf/writer.rb +2 -2
- data/lib/pdf/writer/object/action.rb +2 -7
- metadata +2 -2
data/lib/pdf/charts/stddev.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# Licensed under a MIT-style licence. See LICENCE in the main distribution
|
7
7
|
# for full licensing information.
|
8
8
|
#
|
9
|
-
# $Id: stddev.rb
|
9
|
+
# $Id: stddev.rb 186 2007-12-10 22:58:48Z sandal $
|
10
10
|
#++
|
11
11
|
require 'pdf/writer'
|
12
12
|
require 'pdf/charts'
|
data/lib/pdf/quickref.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# Licensed under a MIT-style licence. See LICENCE in the main distribution
|
7
7
|
# for full licensing information.
|
8
8
|
#
|
9
|
-
# $Id: quickref.rb
|
9
|
+
# $Id: quickref.rb 186 2007-12-10 22:58:48Z sandal $
|
10
10
|
#++
|
11
11
|
require 'pdf/simpletable'
|
12
12
|
|
data/lib/pdf/simpletable.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# Licensed under a MIT-style licence. See LICENCE in the main distribution
|
7
7
|
# for full licensing information.
|
8
8
|
#
|
9
|
-
# $Id: simpletable.rb
|
9
|
+
# $Id: simpletable.rb 186 2007-12-10 22:58:48Z sandal $
|
10
10
|
#++
|
11
11
|
require 'pdf/writer'
|
12
12
|
require 'transaction/simple/group'
|
data/lib/pdf/writer.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
# Licensed under a MIT-style licence. See LICENCE in the main distribution
|
7
7
|
# for full licensing information.
|
8
8
|
#
|
9
|
-
# $Id: writer.rb
|
9
|
+
# $Id: writer.rb 190 2007-12-11 07:16:27Z sandal $
|
10
10
|
#++
|
11
11
|
require 'thread'
|
12
12
|
require 'open-uri'
|
@@ -19,7 +19,7 @@ require 'color'
|
|
19
19
|
module PDF
|
20
20
|
class Writer
|
21
21
|
# The version of PDF::Writer.
|
22
|
-
VERSION = '1.1.
|
22
|
+
VERSION = '1.1.6'
|
23
23
|
|
24
24
|
# Escape the text so that it's safe for insertion into the PDF
|
25
25
|
# document.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# Licensed under a MIT-style licence. See LICENCE in the main distribution
|
7
7
|
# for full licensing information.
|
8
8
|
#
|
9
|
-
# $Id: action.rb
|
9
|
+
# $Id: action.rb 190 2007-12-11 07:16:27Z sandal $
|
10
10
|
#++
|
11
11
|
# An action object, used to link to URLS initially
|
12
12
|
class PDF::Writer::Object::Action < PDF::Writer::Object
|
@@ -22,17 +22,12 @@ class PDF::Writer::Object::Action < PDF::Writer::Object
|
|
22
22
|
attr_accessor :label
|
23
23
|
|
24
24
|
def to_s
|
25
|
-
@parent.arc4.prepare(self) if @parent.encrypted?
|
26
25
|
res = "\n#{@oid} 0 obj\n<< /Type /Action"
|
27
26
|
if @type == :ilink
|
28
27
|
res << "\n/S /GoTo\n/D #{@parent.destinations[@label].oid} 0 R"
|
29
28
|
elsif @type == 'URI'
|
30
29
|
res << "\n/S /URI\n/URI ("
|
31
|
-
|
32
|
-
res << PDF::Writer.escape(@parent.arc4.encrypt(@label))
|
33
|
-
else
|
34
|
-
res << PDF::Writer.escape(@label)
|
35
|
-
end
|
30
|
+
res << PDF::Writer.escape(@label)
|
36
31
|
res << ")\n"
|
37
32
|
end
|
38
33
|
res << ">>\nendobj"
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: pdf-writer
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.1.
|
7
|
-
date: 2007-12-
|
6
|
+
version: 1.1.6
|
7
|
+
date: 2007-12-11 00:00:00 -05:00
|
8
8
|
summary: A pure Ruby PDF document creation library.
|
9
9
|
require_paths:
|
10
10
|
- lib
|