pdf_watermark 0.1.5.2 → 0.1.6

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: 6a5936ab3b3a9a9add697b788022ddfcd034d0a4
4
- data.tar.gz: c455e622e3339f3b6a77bfe883820ebd115d4c54
3
+ metadata.gz: 523bc19fdfbb123b16f40b89259eae28c0857920
4
+ data.tar.gz: 24971ecaa3890c432f2adc4555078117c12d95e7
5
5
  SHA512:
6
- metadata.gz: bb64e8fd6adb0b90d9ecbf4ac761bd090b887ffebb04a82b797d75f8b35195b0f8effc8556ff3207aaa8f8d672a761d8c1b11b9d8393a2c661ea16fc8331d402
7
- data.tar.gz: edb4c400f95e4c390689e4a6426656b85a670429263901c7e872eb235922e1670dadaf7203e41c70042fa98181b5085a73735f5eb36e266f3f830267eda65fbe
6
+ metadata.gz: 751aeef5401b8ea5275a9fd5e689e603fcb0dcf5e507ff46a6b0abc5b67760b5744b1678eefd979a072ea6df58cdb6aea559d6f578c0913b7212ceee3782a909
7
+ data.tar.gz: 7460fae2f2873174361d7dae45e82e47114477249cb78adaf7135bf03b4594459af05fe1cc051da96f79f6f286e56ad5d8007649effed7dc83a292ed5af28f60
@@ -1,3 +1,3 @@
1
1
  module PdfWatermark
2
- VERSION = "0.1.5.2"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -73,8 +73,8 @@ module PdfWatermark
73
73
  box_width = text_width(@mark_string, @font_size)
74
74
  temp_y = @y
75
75
  indent = false
76
- offset_x = box_width + 5 * @font_size
77
- offset_y = box_height + 5 * @font_size
76
+ offset_x = box_width + @options[:repeat_offset] * @font_size
77
+ offset_y = box_height + @options[:repeat_offset] * @font_size
78
78
  bounding_box([@x, @y], width: @content_width, height: @content_height) do
79
79
  while temp_y > 0 do
80
80
  rotate @angle, origin: [@content_width/2, @content_height/2] do
data/lib/pdf_watermark.rb CHANGED
@@ -22,6 +22,7 @@ module PdfWatermark
22
22
  mode: :fill,
23
23
  max_font_size: 50,
24
24
  min_font_size: 15,
25
+ repeat_offset: 4
25
26
  }
26
27
  options = default.merge(options)
27
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdf_watermark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5.2
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - bruce