pdf-core 0.2.5 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49cc11d4a7751ae3e1b266798861936af1c4c8eb
4
- data.tar.gz: edaa03b648fdf984c219cddea573be499ce0ea53
3
+ metadata.gz: 0fb610dd63c3a11d1f80f018621216d874a55add
4
+ data.tar.gz: b2c6a5986d1eac6a5394635bd7102c91b9887f2a
5
5
  SHA512:
6
- metadata.gz: b056468d390398265310ac3b57c037e9e04c7413bf511682acb8bf8a284a37fe93531b81a421c59c7d681ce6d730810b47fd51bbacefc5a41911f2e762ac9c21
7
- data.tar.gz: d97306500e489b3900b1e837484f253d931dbefe1c6826128a4ae58f37a5767c87024069885b4b2056eb5a7ac97bc389ae36ffd0f1383b15c56bee7b74331744
6
+ metadata.gz: 35d714cde7250d6257f605739a14a6331c6a588dd417602d70d736a4cf57663718779266225e26482f08b2d9c6af08a0a7fad1652137a7e17fb696001ad68a88
7
+ data.tar.gz: 1998cf8557977603360876e238b6f3f29d584b2838426f523d89cee47762d6feabc4f86162d480ff616d7edbd15dcabbd43219dfda0ed386eb3dd81b903eb02f
data/GPLv2 CHANGED
@@ -1,12 +1,12 @@
1
- GNU GENERAL PUBLIC LICENSE
2
- Version 2, June 1991
1
+ GNU GENERAL PUBLIC LICENSE
2
+ Version 2, June 1991
3
3
 
4
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
5
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
6
6
  Everyone is permitted to copy and distribute verbatim copies
7
7
  of this license document, but changing it is not allowed.
8
8
 
9
- Preamble
9
+ Preamble
10
10
 
11
11
  The licenses for most software are designed to take away your
12
12
  freedom to share and change it. By contrast, the GNU General Public
@@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
15
15
  General Public License applies to most of the Free Software
16
16
  Foundation's software and to any other program whose authors commit to
17
17
  using it. (Some other Free Software Foundation software is covered by
18
- the GNU Library General Public License instead.) You can apply it to
18
+ the GNU Lesser General Public License instead.) You can apply it to
19
19
  your programs, too.
20
20
 
21
21
  When we speak of free software, we are referring to freedom, not
@@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
55
55
 
56
56
  The precise terms and conditions for copying, distribution and
57
57
  modification follow.
58
-
59
- GNU GENERAL PUBLIC LICENSE
58
+
59
+ GNU GENERAL PUBLIC LICENSE
60
60
  TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
61
 
62
62
  0. This License applies to any program or other work which contains
@@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
110
110
  License. (Exception: if the Program itself is interactive but
111
111
  does not normally print such an announcement, your work based on
112
112
  the Program is not required to print an announcement.)
113
-
113
+
114
114
  These requirements apply to the modified work as a whole. If
115
115
  identifiable sections of that work are not derived from the Program,
116
116
  and can be reasonably considered independent and separate works in
@@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
168
168
  access to copy the source code from the same place counts as
169
169
  distribution of the source code, even though third parties are not
170
170
  compelled to copy the source along with the object code.
171
-
171
+
172
172
  4. You may not copy, modify, sublicense, or distribute the Program
173
173
  except as expressly provided under this License. Any attempt
174
174
  otherwise to copy, modify, sublicense or distribute the Program is
@@ -225,7 +225,7 @@ impose that choice.
225
225
 
226
226
  This section is intended to make thoroughly clear what is believed to
227
227
  be a consequence of the rest of this License.
228
-
228
+
229
229
  8. If the distribution and/or use of the Program is restricted in
230
230
  certain countries either by patents or by copyrighted interfaces, the
231
231
  original copyright holder who places the Program under this License
@@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
255
255
  of preserving the free status of all derivatives of our free software and
256
256
  of promoting the sharing and reuse of software generally.
257
257
 
258
- NO WARRANTY
258
+ NO WARRANTY
259
259
 
260
260
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
261
  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
277
  PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
278
  POSSIBILITY OF SUCH DAMAGES.
279
279
 
280
- END OF TERMS AND CONDITIONS
281
-
282
- How to Apply These Terms to Your New Programs
280
+ END OF TERMS AND CONDITIONS
281
+
282
+ How to Apply These Terms to Your New Programs
283
283
 
284
284
  If you develop a new program, and you want it to be of the greatest
285
285
  possible use to the public, the best way to achieve this is to make it
@@ -303,17 +303,16 @@ the "copyright" line and a pointer to where the full notice is found.
303
303
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
304
304
  GNU General Public License for more details.
305
305
 
306
- You should have received a copy of the GNU General Public License
307
- along with this program; if not, write to the Free Software
308
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
309
-
306
+ You should have received a copy of the GNU General Public License along
307
+ with this program; if not, write to the Free Software Foundation, Inc.,
308
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
310
309
 
311
310
  Also add information on how to contact you by electronic and paper mail.
312
311
 
313
312
  If the program is interactive, make it output a short notice like this
314
313
  when it starts in an interactive mode:
315
314
 
316
- Gnomovision version 69, Copyright (C) year name of author
315
+ Gnomovision version 69, Copyright (C) year name of author
317
316
  Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
318
317
  This is free software, and you are welcome to redistribute it
319
318
  under certain conditions; type `show c' for details.
@@ -336,5 +335,6 @@ necessary. Here is a sample; alter the names:
336
335
  This General Public License does not permit incorporating your program into
337
336
  proprietary programs. If your program is a subroutine library, you may
338
337
  consider it more useful to permit linking proprietary applications with the
339
- library. If this is what you want to do, use the GNU Library General
338
+ library. If this is what you want to do, use the GNU Lesser General
340
339
  Public License instead of this License.
340
+
@@ -5,10 +5,18 @@ module PDF
5
5
  normalize_metadata(options)
6
6
 
7
7
  if options[:template]
8
- @store = PDF::Core::ObjectStore.new(:template => options[:template])
8
+ if options[:print_scaling]
9
+ @store = PDF::Core::ObjectStore.new(:template => options[:template], :print_scaling => options[:print_scaling])
10
+ else
11
+ @store = PDF::Core::ObjectStore.new(:template => options[:template])
12
+ end
9
13
  @store.info.data.merge!(options[:info]) if options[:info]
10
14
  else
11
- @store = PDF::Core::ObjectStore.new(:info => options[:info])
15
+ if options[:print_scaling]
16
+ @store = PDF::Core::ObjectStore.new(:info => options[:info], :print_scaling => options[:print_scaling])
17
+ else
18
+ @store = PDF::Core::ObjectStore.new(:info => options[:info])
19
+ end
12
20
  end
13
21
 
14
22
  @version = 1.3
data/lib/pdf/core/text.rb CHANGED
@@ -9,7 +9,6 @@
9
9
  module PDF
10
10
  module Core
11
11
  module Text #:nodoc:
12
-
13
12
  # These should be used as a base. Extensions may build on this list
14
13
  #
15
14
  VALID_OPTIONS = [:kerning, :size, :style]
@@ -19,14 +18,6 @@ module PDF
19
18
 
20
19
  attr_reader :skip_encoding
21
20
 
22
- # Low level text placement method. All font and size alterations
23
- # should already be set
24
- #
25
- def draw_text!(text, options)
26
- x,y = map_to_absolute(options[:at])
27
- add_text_content(text,x,y,options)
28
- end
29
-
30
21
  # Low level call to set the current font style and extract text options from
31
22
  # an options hash. Should be called from within a save_font block
32
23
  #
@@ -245,8 +236,6 @@ module PDF
245
236
  end
246
237
  end
247
238
 
248
- private
249
-
250
239
  def add_text_content(text, x, y, options)
251
240
  chunks = font.encode_text(text,options)
252
241
 
data/pdf-core.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.authors = ["Gregory Brown","Brad Ediger","Daniel Nelson","Jonathan Greenberg","James Healy"]
19
19
  spec.email = ["gregory.t.brown@gmail.com","brad@bradediger.com","dnelson@bluejade.com","greenberg@entryway.net","jimmy@deefa.com"]
20
20
  spec.rubyforge_project = "prawn"
21
+ spec.licenses = ['RUBY', 'GPL-2', 'GPL-3']
21
22
  spec.add_development_dependency('pdf-reader', '~>1.2')
22
23
  spec.add_development_dependency('simplecov')
23
24
  spec.add_development_dependency('pdf-inspector', '~> 1.1.0')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-03-19 00:00:00.000000000 Z
15
+ date: 2014-09-11 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: pdf-reader
@@ -129,7 +129,10 @@ files:
129
129
  - spec/spec_helper.rb
130
130
  - spec/stream_spec.rb
131
131
  homepage: http://prawn.majesticseacreature.com
132
- licenses: []
132
+ licenses:
133
+ - RUBY
134
+ - GPL-2
135
+ - GPL-3
133
136
  metadata: {}
134
137
  post_install_message:
135
138
  rdoc_options: []