Skip to content

TransparentPDFs should not only check for file extension but also for Mime Type #98

@tmaier

Description

@tmaier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions