Skip to content
benjamin4ruby edited this page Jul 29, 2011 · 6 revisions

General Configuration

Thumbnail Folder

setThumbnailFolder(String thumbnailPath) or
setThumbnailFolder(File thumbnailPath)

Default Value: NONE! This needs to be set before using, otherwise it will throw an exception.

Can be absolute or relative to current working directory.

Thumbnail Size

Thumbnailer.setImageSize(int imageWidth, int imageHeight, int otherOptions)

Default Values: 160x120

The Width and Height of the resulting thumbnail. (otherOptions is currently not used; Thumbnails will always "fit one dimension" (cropping the other dimension) and "never scale up" (centering it on a white background instead).)

Thumbnailers to use

ThumbnailManager.registerThumbnailer(Thumbnailer thumbnailer)

Add Classes that handle a specific document type to a ThumbnailManager which groups them together.

Configuration of some specific Thumbnailers

JODConverter

JODConverterThumbnailer(String openOfficeHomeFolder, String paramOpenOfficeProfile)

openOfficeHomeFolder (optional): Path to OpenOffice installation. If not given, JODConverter tries to goes common paths (depending on your OS).

paramOpenOfficeProfile (optional): Path to the profile that JODConverter should use during conversions. If not given, JODConverter creates a temporary profile on startup (that's why the message "exit code 81" appears).