obf 0.6.11 → 0.6.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/obf/external.rb +3 -0
- data/lib/obf/pdf.rb +1 -1
- 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: 7106e269118fbe4503639ae2c3576f7bd5294b18
|
4
|
+
data.tar.gz: 715d0814dd43a7454ee3790c7729ee1148c15b1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff1e06cef534aa4a6fe125993a9bb393efcefdda7580236c9399cf819589e51cb8f082467a7945c93775dc97a08f56b11e2dcd1d66aa9c29b29b87a928f763f
|
7
|
+
data.tar.gz: f97890e6e41f782d5769c16e0a2dd9f0cb35cf37ca4c225eccf28926b466d119af86441573b4655c5a946dfc01bb57bc4e08785ce5b388175034b52767ce1e41
|
data/lib/obf/external.rb
CHANGED
@@ -292,6 +292,9 @@ module OBF::External
|
|
292
292
|
end
|
293
293
|
|
294
294
|
def self.to_pdf(board, dest_path, opts)
|
295
|
+
if board && board['boards']
|
296
|
+
opts['packet'] = true
|
297
|
+
end
|
295
298
|
tmp_path = OBF::Utils.temp_path("stash")
|
296
299
|
if opts['packet']
|
297
300
|
OBF::Utils.as_progress_percent(0, 0.3) do
|
data/lib/obf/pdf.rb
CHANGED
@@ -80,7 +80,7 @@ module OBF::PDF
|
|
80
80
|
pdf.fill_color "6D81D1"
|
81
81
|
pdf.fill_and_stroke_polygon([5, 50], [35, 85], [35, 70], [95, 70], [95, 30], [35, 30], [35, 15])
|
82
82
|
pdf.fill_color "ffffff"
|
83
|
-
pdf.
|
83
|
+
pdf.formatted_text_box [{:text => "Go Back", :anchor => "page1"}], :at => [10, 90], :width => 80, :height => 80, :align => :center, :valign => :center, :overflow => :shrink_to_fit
|
84
84
|
pdf.fill_color "ffffff"
|
85
85
|
pdf.fill_and_stroke_rounded_rectangle [110, 100], (doc_width - 200 - 20), 100, default_radius
|
86
86
|
pdf.fill_color "DDDB54"
|