Liferay 6.2-ce-ga5

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 sourceFileVersion, FileVersion destinationFileVersion)
           
 InputStream getPreviewAsStream(FileVersion fileVersion, int index)
           
 int getPreviewFileCount(FileVersion fileVersion)
           
 long getPreviewFileSize(FileVersion fileVersion, int index)
           
 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 isSupported(String mimeType)
           
 void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)
           
 

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 sourceFileVersion,
                    FileVersion destinationFileVersion)
                    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

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)

isSupported

boolean isSupported(String mimeType)

trigger

void trigger(FileVersion sourceFileVersion,
             FileVersion destinationFileVersion)

Liferay 6.2-ce-ga5