Permalink
Browse files

fixing page bug in index

  • Loading branch information...
1 parent 12a5521 commit 23c166271ce38218f64b7ef4a73408e4fb570534 @runemadsen committed Dec 2, 2012
Showing with 8 additions and 8 deletions.
  1. +7 −7 application.rb
  2. +1 −1 gems/asciidoc
View
@@ -49,16 +49,16 @@ class Application < Sinatra::Base
# render page count pdf
@document.render(:pdf, :html_file => File.join(output_folder, "index.html"),
:output => File.join(output_folder, "page_count.pdf"),
- :prince_args => {
- "--script" => File.join(output_folder, "page_count", "page_count.js"),
- "--style" => File.join(output_folder, "page_count", "page_count.css"),
- "-i" => "html5",
- ">"=> File.join(output_folder, "page_count", "out.js")
- }
+ :prince_args => [
+ ["--script", File.join(output_folder, "page_count", "page_count.js")],
+ ["--style", File.join(output_folder, "page_count", "page_count.css")],
+ ["-i", "html5"],
+ [">", File.join(output_folder, "page_count", "out.js")]
+ ]
)
puts "Rendered Page Count PDF after: #{Time.now-startTime} seconds"
- # render final pdf
+ #render final pdf
@document.render(:pdf, :html_file => File.join(output_folder, "index.html"),
:output => File.join(output_folder, "index.pdf"),
:prince_args => [

0 comments on commit 23c1662

Please sign in to comment.