com.liferay.portlet.documentlibrary.util
Class PDFProcessorUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.PDFProcessorUtil
public class PDFProcessorUtil
- extends java.lang.Object
- Author:
- Sergio González
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFProcessorUtil
public PDFProcessorUtil()
generateImages
public static void generateImages(FileVersion fileVersion)
throws java.lang.Exception
- Throws:
java.lang.Exception
getGlobalSearchPath
public static java.lang.String getGlobalSearchPath()
throws java.lang.Exception
- Throws:
java.lang.Exception
getPDFProcessor
public static PDFProcessor getPDFProcessor()
getPreviewAsStream
public static java.io.InputStream getPreviewAsStream(FileVersion fileVersion,
int index)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPreviewFileCount
public static int getPreviewFileCount(FileVersion fileVersion)
getPreviewFileSize
public static long getPreviewFileSize(FileVersion fileVersion,
int index)
throws java.lang.Exception
- Throws:
java.lang.Exception
getResourceLimitsProperties
public static java.util.Properties getResourceLimitsProperties()
throws java.lang.Exception
- Throws:
java.lang.Exception
getThumbnailAsStream
public static java.io.InputStream getThumbnailAsStream(FileVersion fileVersion,
int index)
throws java.lang.Exception
- Throws:
java.lang.Exception
getThumbnailFileSize
public static long getThumbnailFileSize(FileVersion fileVersion,
int index)
throws java.lang.Exception
- Throws:
java.lang.Exception
hasImages
public static boolean hasImages(FileVersion fileVersion)
isDocumentSupported
public static boolean isDocumentSupported(FileVersion fileVersion)
isDocumentSupported
public static boolean isDocumentSupported(java.lang.String mimeType)
isImageMagickEnabled
public static boolean isImageMagickEnabled()
throws java.lang.Exception
- Throws:
java.lang.Exception
isSupported
public static boolean isSupported(java.lang.String mimeType)
reset
public static void reset()
throws java.lang.Exception
- Throws:
java.lang.Exception
trigger
public static void trigger(FileVersion fileVersion)
setPDFProcessor
public void setPDFProcessor(PDFProcessor pdfProcessor)