Example #1
0
    def get_thumbnail(self, document_path, mime_type):
        if not self.archive_path:
            self.archive_path = self.convert_to_pdf(document_path)

        return make_thumbnail_from_pdf(self.archive_path, self.tempdir,
                                       self.logging_group)
Example #2
0
 def get_thumbnail(self, document_path, mime_type, file_name=None):
     return make_thumbnail_from_pdf(self.archive_path or document_path,
                                    self.tempdir, self.logging_group)
Example #3
0
 def get_thumbnail(self, document_path, mime_type):
     return make_thumbnail_from_pdf(document_path, self.tempdir,
                                    self.logging_group)