obf 0.7.4 → 0.7.5
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 +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a27fdff7261fbbfe6858eb43c17d1002cc4ec334
|
4
|
+
data.tar.gz: 19ec68d9b18b28e450e9168104baf467fcdcadc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba3b5347b52726daebe6ef9922b10b78a3d70991815f1f6ce9e56f50b90994cc34a573f8750cc348d5295ad6ed05027afba4472c4df1d7803fc060ca9ebbf9fc
|
7
|
+
data.tar.gz: f0df2604eef61c2ffea95a4f71c7fbdcd6a51bcbf07c734196a34c46f2d9ceb47763b56ae96bf485b11d9f65c8dc292badc4314bab0e1b48e4fa451ccb3826eb
|
data/lib/obf/pdf.rb
CHANGED
@@ -130,7 +130,7 @@ module OBF::PDF
|
|
130
130
|
pdf.fill_color fill
|
131
131
|
pdf.stroke_color border
|
132
132
|
pdf.fill_and_stroke_rounded_rectangle [0, button_height], button_width, button_height, default_radius
|
133
|
-
vertical = options['text_on_top'] ?
|
133
|
+
vertical = options['text_on_top'] ? button_height - text_height : button_height - 5
|
134
134
|
pdf.bounding_box([5, vertical], :width => button_width - 10, :height => button_height - text_height - 5) do
|
135
135
|
image = (obj['images_hash'] || {})[button['image_id']]
|
136
136
|
if image
|
@@ -144,10 +144,10 @@ module OBF::PDF
|
|
144
144
|
if options['pages'] && button['load_board']
|
145
145
|
page = options['pages'][button['load_board']['id']]
|
146
146
|
if page
|
147
|
-
|
147
|
+
page_vertical = options['text_on_top'] ? 5 + text_height : button_height - 5
|
148
148
|
pdf.fill_color "ffffff"
|
149
149
|
pdf.stroke_color "eeeeee"
|
150
|
-
pdf.fill_and_stroke_rounded_rectangle [button_width - 25,
|
150
|
+
pdf.fill_and_stroke_rounded_rectangle [button_width - 25, page_vertical], 20, text_height, 5
|
151
151
|
pdf.fill_color "000000"
|
152
152
|
pdf.formatted_text_box [{:text => page, :anchor => "page#{page}"}], :at => [button_width - 25, vertical], :width => 20, :height => text_height, :align => :center, :valign => :center
|
153
153
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: obf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Whitmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|