com.liferay.portlet.documentlibrary.util
Class PDFProcessorUtil
java.lang.Object
com.liferay.portlet.documentlibrary.util.PDFProcessorUtil
public class PDFProcessorUtil
- extends Object
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 sourceFileVersion,
FileVersion destinationFileVersion)
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
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)
isSupported
public static boolean isSupported(String mimeType)
trigger
public static void trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion)
setPDFProcessor
public void setPDFProcessor(PDFProcessor pdfProcessor)
- Deprecated. As of 6.2.0