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 exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement)
           
 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.util.Properties getResourceLimitsProperties()
           
 java.io.InputStream getThumbnailAsStream(FileVersion fileVersion, int index)
           
 long getThumbnailFileSize(FileVersion fileVersion, int index)
           
 boolean hasImages(FileVersion fileVersion)
           
 void importGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, FileEntry importedFileEntry, Element fileEntryElement)
           
 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

exportGeneratedFiles

void exportGeneratedFiles(PortletDataContext portletDataContext,
                          FileEntry fileEntry,
                          Element fileEntryElement)
                          throws java.lang.Exception
Throws:
java.lang.Exception

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

getResourceLimitsProperties

java.util.Properties getResourceLimitsProperties()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

getThumbnailAsStream

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

getThumbnailFileSize

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

hasImages

boolean hasImages(FileVersion fileVersion)

importGeneratedFiles

void importGeneratedFiles(PortletDataContext portletDataContext,
                          FileEntry fileEntry,
                          FileEntry importedFileEntry,
                          Element fileEntryElement)
                          throws java.lang.Exception
Throws:
java.lang.Exception

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)