pdf-writer 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 187 2007-12-10 22:59:23Z sandal $
9
+ # $Id: stddev.rb 186 2007-12-10 22:58:48Z sandal $
10
10
  #++
11
11
  require 'pdf/writer'
12
12
  require 'pdf/charts'
@@ -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 187 2007-12-10 22:59:23Z sandal $
9
+ # $Id: quickref.rb 186 2007-12-10 22:58:48Z sandal $
10
10
  #++
11
11
  require 'pdf/simpletable'
12
12
 
@@ -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 187 2007-12-10 22:59:23Z sandal $
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'
@@ -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 187 2007-12-10 22:59:23Z sandal $
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.5'
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 65 2005-05-24 22:19:42Z austin $
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
- if @parent.encrypted?
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.5
7
- date: 2007-12-10 00:00:00 -05:00
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