pdf-core 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pdf/core/object_store.rb +3 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1db7a454bf4818e0320591f85425fba5c81d83c
4
- data.tar.gz: 35ddcc1adc2c2649d54d416c0f29d9f9b46ed837
3
+ metadata.gz: 2623bbd4ba608b95d098ec76c889920a65edf6f7
4
+ data.tar.gz: 518d068701cdc3ec25ea5380b262f41d436d9d46
5
5
  SHA512:
6
- metadata.gz: 8c1b1717b67cdec541fe441231f28a56e7d46f09a9d050c99d6b0f9b8332abdc210f03b633c13ded533ca6969a5813c65ab3f37f0e36847edad5e19f90ac1889
7
- data.tar.gz: c83828520b846dd237afe54d0d7e578a965e536434d8fc8e30b6d060bfcf42851ad1804a7d207d619c3a98662c607ee897315d7ecb29efd4e8dec360d75d4917
6
+ metadata.gz: 3674b8a9e33c3055983f8b1eded9c4cc2cb83bd5c4c315353b1834d484ba92a896bbd6e4f94ebc34654e46b8ddd78a2c9d633be075962b7900c1c400812406b5
7
+ data.tar.gz: 1998aee60a685847bd7511898cc7580de080234367a9dc58a6610a9741ea43cab56ea6d00bf20409b2ec1aaa916ef2f1f866e3ce6c4638622bc0397c71699c32
@@ -26,6 +26,9 @@ module PDF
26
26
 
27
27
  @info ||= ref(opts[:info] || {}).identifier
28
28
  @root ||= ref(:Type => :Catalog).identifier
29
+ if opts[:print_scaling] == :none
30
+ root.data[:ViewerPreferences] = {:PrintScaling => :None}
31
+ end
29
32
  if pages.nil?
30
33
  root.data[:Pages] = ref(:Type => :Pages, :Count => 0, :Kids => [])
31
34
  end
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.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown