Liferay 6.1.2-ce-ga3

com.liferay.portlet.documentlibrary.util
Class PDFProcessorUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.util.PDFProcessorUtil

public class PDFProcessorUtil
extends Object


Constructor Summary
PDFProcessorUtil()
           
 
Method Summary
static void generateImages(FileVersion fileVersion)
           
static String getGlobalSearchPath()
           
static PDFProcessor getPDFProcessor()
           
static InputStream getPreviewAsStream(FileVersion fileVersion, int index)
           
static int getPreviewFileCount(FileVersion fileVersion)
           
static long getPreviewFileSize(FileVersion fileVersion, int index)
           
static Properties getResourceLimitsProperties()
           
static InputStream getThumbnailAsStream(FileVersion fileVersion, int index)
           
static long getThumbnailFileSize(FileVersion fileVersion, int index)
           
static boolean hasImages(FileVersion fileVersion)
           
static boolean isDocumentSupported(FileVersion fileVersion)
           
static boolean isDocumentSupported(String mimeType)
           
static boolean isImageMagickEnabled()
           
static boolean isSupported(String mimeType)
           
static void reset()
           
 void setPDFProcessor(PDFProcessor pdfProcessor)
          Deprecated.  
static void trigger(FileVersion fileVersion)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFProcessorUtil

public PDFProcessorUtil()
Method Detail

generateImages

public static void generateImages(FileVersion fileVersion)
                           throws Exception
Throws:
Exception

getGlobalSearchPath

public static String getGlobalSearchPath()
                                  throws Exception
Throws:
Exception

getPDFProcessor

public static PDFProcessor getPDFProcessor()

getPreviewAsStream

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

getPreviewFileCount

public static int getPreviewFileCount(FileVersion fileVersion)

getPreviewFileSize

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

getResourceLimitsProperties

public static Properties getResourceLimitsProperties()
                                              throws Exception
Throws:
Exception

getThumbnailAsStream

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

getThumbnailFileSize

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

hasImages

public static boolean hasImages(FileVersion fileVersion)

isDocumentSupported

public static boolean isDocumentSupported(FileVersion fileVersion)

isDocumentSupported

public static boolean isDocumentSupported(String mimeType)

isImageMagickEnabled

public static boolean isImageMagickEnabled()
                                    throws Exception
Throws:
Exception

isSupported

public static boolean isSupported(String mimeType)

reset

public static void reset()
                  throws Exception
Throws:
Exception

trigger

public static void trigger(FileVersion fileVersion)

setPDFProcessor

public void setPDFProcessor(PDFProcessor pdfProcessor)
Deprecated. 


Liferay 6.1.2-ce-ga3