pdf-core 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/pdf/core/annotations.rb +51 -13
- data/lib/pdf/core/byte_string.rb +3 -1
- data/lib/pdf/core/destinations.rb +64 -24
- data/lib/pdf/core/document_state.rb +97 -14
- data/lib/pdf/core/filter_list.rb +30 -1
- data/lib/pdf/core/filters.rb +26 -7
- data/lib/pdf/core/graphics_state.rb +68 -23
- data/lib/pdf/core/literal_string.rb +9 -9
- data/lib/pdf/core/name_tree.rb +74 -13
- data/lib/pdf/core/object_store.rb +69 -19
- data/lib/pdf/core/outline_item.rb +53 -4
- data/lib/pdf/core/outline_root.rb +18 -2
- data/lib/pdf/core/page.rb +148 -23
- data/lib/pdf/core/page_geometry.rb +4 -58
- data/lib/pdf/core/pdf_object.rb +57 -36
- data/lib/pdf/core/reference.rb +50 -14
- data/lib/pdf/core/renderer.rb +115 -44
- data/lib/pdf/core/stream.rb +38 -8
- data/lib/pdf/core/text.rb +242 -102
- data/lib/pdf/core/utils.rb +8 -0
- data/lib/pdf/core.rb +26 -16
- data/pdf-core.gemspec +27 -23
- data.tar.gz.sig +0 -0
- metadata +44 -107
- metadata.gz.sig +2 -2
- data/Gemfile +0 -5
- data/Rakefile +0 -29
metadata
CHANGED
@@ -1,39 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdf-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Alexander Mankuta
|
7
8
|
- Gregory Brown
|
8
9
|
- Brad Ediger
|
9
10
|
- Daniel Nelson
|
10
11
|
- Jonathan Greenberg
|
11
12
|
- James Healy
|
12
|
-
autorequire:
|
13
|
+
autorequire:
|
13
14
|
bindir: bin
|
14
15
|
cert_chain:
|
15
16
|
- |
|
16
17
|
-----BEGIN CERTIFICATE-----
|
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C4Hr8d23QhQhi7TNHMhFbbviLN
|
31
|
+
3PSD95fgZ5ZYiZWNUV5Z7IeDhpH3rWE070SH3PYfDKnzKewBn4KBLg2fGKm1HqsO
|
32
|
+
UqvUp1HP0VdAUHTf3JsOaYg24GIN8f4Q6rIekG6C6z/MLkVLPHjh57y4jfdJkFMP
|
33
|
+
LrBc0vY9enBMXykQjvnq1R4lD+2RkaAE2KwrjIPtPQR1mo9hPJvjWhvM+th1pk6E
|
34
|
+
j+VZOY/0o89hstamSTBkvSK+kX7LhSX7ELlldyjQqPR1ZMmnznv2+1mVl733TfRl
|
35
|
+
G3y/80js
|
35
36
|
-----END CERTIFICATE-----
|
36
|
-
date:
|
37
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
37
38
|
dependencies:
|
38
39
|
- !ruby/object:Gem::Dependency
|
39
40
|
name: pdf-inspector
|
@@ -64,91 +65,23 @@ dependencies:
|
|
64
65
|
- !ruby/object:Gem::Version
|
65
66
|
version: '1.2'
|
66
67
|
- !ruby/object:Gem::Dependency
|
67
|
-
name:
|
68
|
-
requirement: !ruby/object:Gem::Requirement
|
69
|
-
requirements:
|
70
|
-
- - ">="
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: '0'
|
73
|
-
type: :development
|
74
|
-
prerelease: false
|
75
|
-
version_requirements: !ruby/object:Gem::Requirement
|
76
|
-
requirements:
|
77
|
-
- - ">="
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: '0'
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: rspec
|
82
|
-
requirement: !ruby/object:Gem::Requirement
|
83
|
-
requirements:
|
84
|
-
- - ">="
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: '0'
|
87
|
-
type: :development
|
88
|
-
prerelease: false
|
89
|
-
version_requirements: !ruby/object:Gem::Requirement
|
90
|
-
requirements:
|
91
|
-
- - ">="
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
version: '0'
|
94
|
-
- !ruby/object:Gem::Dependency
|
95
|
-
name: rubocop
|
68
|
+
name: prawn-dev
|
96
69
|
requirement: !ruby/object:Gem::Requirement
|
97
70
|
requirements:
|
98
71
|
- - "~>"
|
99
72
|
- !ruby/object:Gem::Version
|
100
|
-
version:
|
73
|
+
version: 0.4.0
|
101
74
|
type: :development
|
102
75
|
prerelease: false
|
103
76
|
version_requirements: !ruby/object:Gem::Requirement
|
104
77
|
requirements:
|
105
78
|
- - "~>"
|
106
79
|
- !ruby/object:Gem::Version
|
107
|
-
version:
|
108
|
-
|
109
|
-
|
110
|
-
requirement: !ruby/object:Gem::Requirement
|
111
|
-
requirements:
|
112
|
-
- - "~>"
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: '1.8'
|
115
|
-
type: :development
|
116
|
-
prerelease: false
|
117
|
-
version_requirements: !ruby/object:Gem::Requirement
|
118
|
-
requirements:
|
119
|
-
- - "~>"
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '1.8'
|
122
|
-
- !ruby/object:Gem::Dependency
|
123
|
-
name: rubocop-rspec
|
124
|
-
requirement: !ruby/object:Gem::Requirement
|
125
|
-
requirements:
|
126
|
-
- - "~>"
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: '1.44'
|
129
|
-
type: :development
|
130
|
-
prerelease: false
|
131
|
-
version_requirements: !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - "~>"
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: '1.44'
|
136
|
-
- !ruby/object:Gem::Dependency
|
137
|
-
name: simplecov
|
138
|
-
requirement: !ruby/object:Gem::Requirement
|
139
|
-
requirements:
|
140
|
-
- - ">="
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '0'
|
143
|
-
type: :development
|
144
|
-
prerelease: false
|
145
|
-
version_requirements: !ruby/object:Gem::Requirement
|
146
|
-
requirements:
|
147
|
-
- - ">="
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '0'
|
150
|
-
description: PDF::Core is used by Prawn to render PDF documents
|
80
|
+
version: 0.4.0
|
81
|
+
description: PDF::Core is used by Prawn to render PDF documents. It provides low-level
|
82
|
+
format support.
|
151
83
|
email:
|
84
|
+
- alex@pointless.one
|
152
85
|
- gregory.t.brown@gmail.com
|
153
86
|
- brad@bradediger.com
|
154
87
|
- dnelson@bluejade.com
|
@@ -161,9 +94,7 @@ files:
|
|
161
94
|
- COPYING
|
162
95
|
- GPLv2
|
163
96
|
- GPLv3
|
164
|
-
- Gemfile
|
165
97
|
- LICENSE
|
166
|
-
- Rakefile
|
167
98
|
- lib/pdf/core.rb
|
168
99
|
- lib/pdf/core/annotations.rb
|
169
100
|
- lib/pdf/core/byte_string.rb
|
@@ -186,13 +117,19 @@ files:
|
|
186
117
|
- lib/pdf/core/text.rb
|
187
118
|
- lib/pdf/core/utils.rb
|
188
119
|
- pdf-core.gemspec
|
189
|
-
homepage: http://prawnpdf.org
|
120
|
+
homepage: http://prawnpdf.org/
|
190
121
|
licenses:
|
191
|
-
-
|
192
|
-
- GPL-2.0
|
193
|
-
- GPL-3.0
|
194
|
-
metadata:
|
195
|
-
|
122
|
+
- Nonstandard
|
123
|
+
- GPL-2.0-only
|
124
|
+
- GPL-3.0-only
|
125
|
+
metadata:
|
126
|
+
rubygems_mfa_required: 'true'
|
127
|
+
homepage_uri: http://prawnpdf.org/
|
128
|
+
changelog_uri: https://github.com/prawnpdf/pdf-core/blob/0.10.0/CHANGELOG.md
|
129
|
+
source_code_uri: https://github.com/prawnpdf/pdf-core
|
130
|
+
documentation_uri: https://prawnpdf.org/docs/pdf-core/0.10.0/
|
131
|
+
bug_tracker_uri: https://github.com/prawnpdf/pdf-core/issues
|
132
|
+
post_install_message:
|
196
133
|
rdoc_options: []
|
197
134
|
require_paths:
|
198
135
|
- lib
|
@@ -200,15 +137,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
200
137
|
requirements:
|
201
138
|
- - ">="
|
202
139
|
- !ruby/object:Gem::Version
|
203
|
-
version: '2.
|
140
|
+
version: '2.7'
|
204
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
205
142
|
requirements:
|
206
143
|
- - ">="
|
207
144
|
- !ruby/object:Gem::Version
|
208
145
|
version: 1.3.6
|
209
146
|
requirements: []
|
210
|
-
rubygems_version: 3.
|
211
|
-
signing_key:
|
147
|
+
rubygems_version: 3.5.3
|
148
|
+
signing_key:
|
212
149
|
specification_version: 4
|
213
|
-
summary:
|
150
|
+
summary: Low level PDF generator.
|
214
151
|
test_files: []
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
v>e#��\1�"ͼ�非�����i�c��|I�J��wܐV���S�Ǎ& � YkS��q�1I�}፫��aS�
|
2
|
+
緅���F��J�[���W�Cw�=(�da��eMu~sc~�����'O��=�S
|
data/Gemfile
DELETED
data/Rakefile
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'rake'
|
4
|
-
require 'rspec/core/rake_task'
|
5
|
-
|
6
|
-
task default: %i[spec rubocop]
|
7
|
-
|
8
|
-
desc 'Run all rspec files'
|
9
|
-
RSpec::Core::RakeTask.new('spec') do |c|
|
10
|
-
c.rspec_opts = '-t ~unresolved'
|
11
|
-
end
|
12
|
-
|
13
|
-
require 'rubocop/rake_task'
|
14
|
-
RuboCop::RakeTask.new
|
15
|
-
|
16
|
-
require 'rubygems/package_task'
|
17
|
-
spec = Gem::Specification.load 'pdf-core.gemspec'
|
18
|
-
Gem::PackageTask.new(spec) do |pkg|
|
19
|
-
pkg.need_zip = true
|
20
|
-
pkg.need_tar = true
|
21
|
-
end
|
22
|
-
|
23
|
-
task :checksum do
|
24
|
-
require 'digest/sha2'
|
25
|
-
built_gem_path = "pkg/pdf-core-#{Prawn::VERSION}.gem"
|
26
|
-
checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
|
27
|
-
checksum_path = "checksums/#{built_gem_path}.sha512"
|
28
|
-
File.write(checksum_path, checksum)
|
29
|
-
end
|