Opened 9 years ago

Closed 9 years ago

#797 closed task (fixed)

Implement thumbnails for PDF documents

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Thumbnails v1.0
Component: net.sf.basedb.thumbnails Keywords:
Cc:

Description

https://java.net/projects/pdf-renderer or https://pdfbox.apache.org/ should be able to create images from PDF documents.

Change History (1)

comment:1 by Nicklas Nordborg, 9 years ago

Resolution: fixed
Status: newclosed

(In [3417]) Fixes #797: Implement thumbnails for PDF documents

The Apache PDF box was really simple to use, so I decided to use that.

The thumbnail code has been refactored a bit. It should now be relatively easy to add support for other file types. Except that maybe the detection of which "loader" to use could be smarter. Now it is simply a few 'if/else' statements chcing the MIME type and extension of the file.

Note: See TracTickets for help on using tickets.