com.liferay.portlet.documentlibrary.util
Interface PDFProcessor


public interface PDFProcessor

Author:
Sergio González

Field Summary
static java.lang.String PREVIEW_TYPE
           
static java.lang.String THUMBNAIL_TYPE
           
 
Method Summary
 void generateImages(FileVersion fileVersion)
           
 java.lang.String getGlobalSearchPath()
           
 java.io.InputStream getPreviewAsStream(FileVersion fileVersion, int index)
           
 int getPreviewFileCount(FileVersion fileVersion)
           
 long getPreviewFileSize(FileVersion fileVersion, int index)
           
 java.io.InputStream getThumbnailAsStream(FileVersion fileVersion, int thumbnailIndex)
           
 long getThumbnailFileSize(FileVersion fileVersion, int thumbnailIndex)
           
 boolean hasImages(FileVersion fileVersion)
           
 boolean isDocumentSupported(FileVersion fileVersion)
           
 boolean isDocumentSupported(java.lang.String mimeType)
           
 boolean isImageMagickEnabled()
           
 boolean isSupported(java.lang.String mimeType)
           
 void reset()
           
 void trigger(FileVersion fileVersion)
           
 

Field Detail

PREVIEW_TYPE

static final java.lang.String PREVIEW_TYPE
See Also:
Constant Field Values

THUMBNAIL_TYPE

static final java.lang.String THUMBNAIL_TYPE
See Also:
Constant Field Values
Method Detail

generateImages

void generateImages(FileVersion fileVersion)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getGlobalSearchPath

java.lang.String getGlobalSearchPath()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

getPreviewAsStream

java.io.InputStream getPreviewAsStream(FileVersion fileVersion,
                                       int index)
                                       throws java.lang.Exception
Throws:
java.lang.Exception

getPreviewFileCount

int getPreviewFileCount(FileVersion fileVersion)

getPreviewFileSize

long getPreviewFileSize(FileVersion fileVersion,
                        int index)
                        throws java.lang.Exception
Throws:
java.lang.Exception

getThumbnailAsStream

java.io.InputStream getThumbnailAsStream(FileVersion fileVersion,
                                         int thumbnailIndex)
                                         throws java.lang.Exception
Throws:
java.lang.Exception

getThumbnailFileSize

long getThumbnailFileSize(FileVersion fileVersion,
                          int thumbnailIndex)
                          throws java.lang.Exception
Throws:
java.lang.Exception

hasImages

boolean hasImages(FileVersion fileVersion)

isDocumentSupported

boolean isDocumentSupported(FileVersion fileVersion)

isDocumentSupported

boolean isDocumentSupported(java.lang.String mimeType)

isImageMagickEnabled

boolean isImageMagickEnabled()
                             throws java.lang.Exception
Throws:
java.lang.Exception

isSupported

boolean isSupported(java.lang.String mimeType)

reset

void reset()
           throws java.lang.Exception
Throws:
java.lang.Exception

trigger

void trigger(FileVersion fileVersion)