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 +4 -4
- data/lib/pdf_watermark/version.rb +1 -1
- data/lib/pdf_watermark/water_mark.rb +2 -2
- data/lib/pdf_watermark.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 523bc19fdfbb123b16f40b89259eae28c0857920
|
4
|
+
data.tar.gz: 24971ecaa3890c432f2adc4555078117c12d95e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 751aeef5401b8ea5275a9fd5e689e603fcb0dcf5e507ff46a6b0abc5b67760b5744b1678eefd979a072ea6df58cdb6aea559d6f578c0913b7212ceee3782a909
|
7
|
+
data.tar.gz: 7460fae2f2873174361d7dae45e82e47114477249cb78adaf7135bf03b4594459af05fe1cc051da96f79f6f286e56ad5d8007649effed7dc83a292ed5af28f60
|
@@ -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 +
|
77
|
-
offset_y = box_height +
|
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