docscape 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/docscape.rb +3 -1
- data/lib/docscape/version.rb +1 -1
- metadata +2 -2
data/lib/docscape.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/docscape/version.rb
CHANGED
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.
|
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-
|
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:
|