docscape 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,7 +10,9 @@ ActionController::Renderers.add :docscape do |filename, options|
10
10
  f = Tempfile.new(["#{filename}",".svg"], "#{Rails.root}/tmp")
11
11
  f.write text
12
12
  f.close
13
- system "inkscape -f #{f.path} -A #{f.path}.pdf"
13
+ command = "inkscape -d 150 -T -z -f #{f.path} -A #{f.path}.pdf"
14
+ logger.debug command
15
+ system command
14
16
  send_file("#{f.path}.pdf", :filename => "#{filename}.pdf", :type => "application/pdf", :disposition => 'inline')
15
17
  end
16
18
 
@@ -1,3 +1,3 @@
1
1
  module Docscape
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docscape
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2011-12-22 00:00:00.000000000Z
13
+ date: 2011-12-23 00:00:00.000000000Z
14
14
  dependencies: []
15
15
  description: convert inkscape (SVG) files to pdf documents
16
16
  email: