pdbook 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/pdbook.rb +1 -1
- data/lib/pdbook/converter.rb +2 -1
- metadata +1 -1
data/lib/pdbook.rb
CHANGED
data/lib/pdbook/converter.rb
CHANGED
@@ -9,7 +9,7 @@ require "prawn/measurement_extensions"
|
|
9
9
|
|
10
10
|
module Pdbook
|
11
11
|
class Converter
|
12
|
-
def initialize(input, output, font = "#{Prawn::BASEDIR}/data/fonts/gkai00mp.ttf", options = {:page_size => "A4", :margin => 0.6.in, :font_size => 20, :spacing => 10, :compress => true
|
12
|
+
def initialize(input, output, font = "#{Prawn::BASEDIR}/data/fonts/gkai00mp.ttf", options = {:page_size => "A4", :margin => 0.6.in, :font_size => 20, :spacing => 10, :compress => true})
|
13
13
|
@input = input
|
14
14
|
@output = output
|
15
15
|
@font = font
|
@@ -19,6 +19,7 @@ module Pdbook
|
|
19
19
|
@options[:font_size] = ENV["font_size"].to_f if ENV["font_size"]
|
20
20
|
@options[:spacing] = ENV["spacing"].to_f if ENV["spacing"]
|
21
21
|
@options[:encoding] = ENV["encoding"].to_f if ENV["encoding"]
|
22
|
+
|
22
23
|
@pdb = Palm::PDB.new(input)
|
23
24
|
@log = Logger.new($STDOUT)
|
24
25
|
end
|