obf 0.6.18 → 0.6.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/pdf.rb +4 -2
- 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: b2815be4140640aaa622c43cb3fbbaf40519f998
|
4
|
+
data.tar.gz: 6b64fe415b61f20a67af3835bd8db7a3359ad22f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39179bf47ea2a1066365340a089c1b2c1a101a93aec599aca2a1c1df5de7b6d462a69e93ca1ebb212d47f401559a346c34ad40b905e3783cd8090a2b13d130a5
|
7
|
+
data.tar.gz: 7009e29b6c7e865613ce199894010fb595407761d2283d3f1f9ec9fe8ab339ac3e9e33a3c6e4bcd3383740da22039da32a925f2b548a75ab4605620eebd5d4f4
|
data/lib/obf/pdf.rb
CHANGED
@@ -141,8 +141,10 @@ module OBF::PDF
|
|
141
141
|
pdf.fill_color "ffffff"
|
142
142
|
pdf.stroke_color "eeeeee"
|
143
143
|
pdf.fill_and_stroke_rounded_rectangle [button_width - 25, button_height - 5], 20, text_height, 5
|
144
|
-
pdf.fill_color "000000"
|
145
|
-
|
144
|
+
pdf.fill_color "000000"
|
145
|
+
if page
|
146
|
+
pdf.formatted_text_box [{:text => page, :anchor => "page#{page}"}], :at => [button_width - 25, button_height - 5], :width => 20, :height => text_height, :align => :center, :valign => :center
|
147
|
+
end
|
146
148
|
end
|
147
149
|
|
148
150
|
pdf.fill_color "000000"
|