itext-jruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/itext-jruby.gemspec +1 -1
- data/lib/itext/attachments.rb +2 -0
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/itext-jruby.gemspec
CHANGED
data/lib/itext/attachments.rb
CHANGED
@@ -55,6 +55,8 @@ module Itext::Attachments
|
|
55
55
|
elsif attachment.is_a?(String)
|
56
56
|
attachment_path = attachment
|
57
57
|
attachment_name = Pathname.new(attachment_path).basename
|
58
|
+
else
|
59
|
+
raise ArgumentError.new("Specify hash with :path and :file_name or string with path")
|
58
60
|
end
|
59
61
|
|
60
62
|
attachment_spec = Java::ComLowagieTextPdf::PdfFileSpecification.fileEmbedded @writer,
|