Closed tmaier closed 10 years ago
Currently, TransparentPDFs would try to convert a file to pdf if the file extension ".pdf" is not available.
TransparentPDFs
https://github.com/documentcloud/docsplit/blob/master/lib/docsplit/transparent_pdfs.rb
But a file does not necessarily need a file extension. It could also provide a valid mime type.
Docsplit could use a gem, like https://rubygems.org/gems/mime-types for this.
Currently,
TransparentPDFs
would try to convert a file to pdf if the file extension ".pdf" is not available.https://github.com/documentcloud/docsplit/blob/master/lib/docsplit/transparent_pdfs.rb
But a file does not necessarily need a file extension. It could also provide a valid mime type.
Docsplit could use a gem, like https://rubygems.org/gems/mime-types for this.