pdbook 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pdbook/converter.rb +3 -3
- data/lib/pdbook.rb +1 -1
- metadata +1 -1
data/lib/pdbook/converter.rb
CHANGED
@@ -29,7 +29,7 @@ module Pdbook
|
|
29
29
|
render_toc(doc, toc)
|
30
30
|
|
31
31
|
# render content
|
32
|
-
doc.text_options.update(:wrap => :character, :size =>
|
32
|
+
doc.text_options.update(:wrap => :character, :size => 24, :spacing => 8)
|
33
33
|
content.each do |record|
|
34
34
|
render_content(doc, record.data)
|
35
35
|
end
|
@@ -58,7 +58,7 @@ module Pdbook
|
|
58
58
|
|
59
59
|
# print cover
|
60
60
|
unless cover.nil?
|
61
|
-
doc.text_options.update(:wrap => :character, :size =>
|
61
|
+
doc.text_options.update(:wrap => :character, :size => 48, :spacing => 8)
|
62
62
|
doc.bounding_box [doc.bounds.left, 2*doc.bounds.top/3], :width => doc.bounds.width do
|
63
63
|
doc.text cover
|
64
64
|
end
|
@@ -67,7 +67,7 @@ module Pdbook
|
|
67
67
|
|
68
68
|
# print toc
|
69
69
|
unless toc.nil?
|
70
|
-
doc.text_options.update(:wrap => :character, :size =>
|
70
|
+
doc.text_options.update(:wrap => :character, :size => 24, :spacing => 8)
|
71
71
|
toc = toc.split("\e")
|
72
72
|
section_cnt = toc.shift.to_i
|
73
73
|
if section_cnt == toc.size
|
data/lib/pdbook.rb
CHANGED