Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.util
Interface PDFProcessor


public interface PDFProcessor


Field Summary
static String PREVIEW_TYPE
           
static String THUMBNAIL_TYPE
           
 
Method Summary
 void exportGeneratedFiles(PortletDataContext portletDataContext, FileEntry fileEntry, Element fileEntryElement)
           
 void generateImages(FileVersion fileVersion)
           
 String getGlobalSearchPath()
           
 InputStream getPreviewAsStream(FileVersion fileVersion, int index)
           
 int getPreviewFileCount(FileVersion fileVersion)
           
 long getPreviewFileSize(FileVersion fileVersion, int index)
           
 Properties getResourceLimitsProperties()
           
 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(String mimeType)
           
 boolean isImageMagickEnabled()
           
 boolean isSupported(String mimeType)
           
 void reset()
           
 void trigger(FileVersion fileVersion)
           
 

Field Detail

PREVIEW_TYPE

static final String PREVIEW_TYPE
See Also:
Constant Field Values

THUMBNAIL_TYPE

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

exportGeneratedFiles

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

generateImages

void generateImages(FileVersion fileVersion)
                    throws Exception
Throws:
Exception

getGlobalSearchPath

String getGlobalSearchPath()
                           throws Exception
Throws:
Exception

getPreviewAsStream

InputStream getPreviewAsStream(FileVersion fileVersion,
                               int index)
                               throws Exception
Throws:
Exception

getPreviewFileCount

int getPreviewFileCount(FileVersion fileVersion)

getPreviewFileSize

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

getResourceLimitsProperties

Properties getResourceLimitsProperties()
                                       throws Exception
Throws:
Exception

getThumbnailAsStream

InputStream getThumbnailAsStream(FileVersion fileVersion,
                                 int index)
                                 throws Exception
Throws:
Exception

getThumbnailFileSize

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

hasImages

boolean hasImages(FileVersion fileVersion)

importGeneratedFiles

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

isDocumentSupported

boolean isDocumentSupported(FileVersion fileVersion)

isDocumentSupported

boolean isDocumentSupported(String mimeType)

isImageMagickEnabled

boolean isImageMagickEnabled()
                             throws Exception
Throws:
Exception

isSupported

boolean isSupported(String mimeType)

reset

void reset()
           throws Exception
Throws:
Exception

trigger

void trigger(FileVersion fileVersion)

Liferay 6.1.2-ce-ga3