norr-prince-ruby 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/lib/prince-ruby.rb +3 -3
- data/prince-ruby.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -15,7 +15,7 @@ Prince is a computer program that converts XML and HTML into PDF documents.
|
|
15
15
|
Prince can read many XML formats, including XHTML and SVG.
|
16
16
|
Prince formats documents according to style sheets written in CSS.
|
17
17
|
|
18
|
-
http://www.princexml.com
|
18
|
+
http://www.princexml.com
|
19
19
|
|
20
20
|
== Notes
|
21
21
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/lib/prince-ruby.rb
CHANGED
@@ -33,7 +33,7 @@ class Prince
|
|
33
33
|
|
34
34
|
# Makes a pdf from a passed in string (html).
|
35
35
|
#
|
36
|
-
def
|
36
|
+
def html_to_string(string)
|
37
37
|
path = self.exe_path()
|
38
38
|
# set up to take IO as input and output
|
39
39
|
path << " --input=html - -o -"
|
@@ -49,7 +49,7 @@ class Prince
|
|
49
49
|
# Makes a pdf from a passed in string (html) and saves to file specified
|
50
50
|
# returns true / false if it everything completed ok
|
51
51
|
#
|
52
|
-
def
|
52
|
+
def html_to_file(string, file)
|
53
53
|
path = self.exe_path()
|
54
54
|
# set up to take IO as input and output
|
55
55
|
path << " --input=html - -o #{file}"
|
@@ -60,4 +60,4 @@ class Prince
|
|
60
60
|
# see if everything finished ok
|
61
61
|
$?.exitstatus == 0
|
62
62
|
end
|
63
|
-
end
|
63
|
+
end
|
data/prince-ruby.gemspec
CHANGED