We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e9fa1 commit a106a51Copy full SHA for a106a51
lib/docsplit.rb
@@ -62,7 +62,7 @@ def self.extract_pdf(docs, opts={})
62
[docs].flatten.each do |doc|
63
ext = File.extname(doc)
64
basename = File.basename(doc, ext)
65
- if GM_FORMATS.include?(ext.sub(/^\./, '').downcase.to_sym)
+ if ext.length > 0 && GM_FORMATS.include?(ext.sub(/^\./, '').downcase.to_sym)
66
`gm convert "#{doc}" "#{out}/#{basename}.pdf"`
67
else
68
options = "-jar #{ROOT}/vendor/jodconverter/jodconverter-core-3.0-beta-3.jar -r #{ROOT}/vendor/conf/document-formats.js"
0 commit comments