public class PDFProcessorUtil
extends Object
Constructor and Description |
---|
PDFProcessorUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
generateImages(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
static PDFProcessor |
getPDFProcessor() |
static InputStream |
getPreviewAsStream(FileVersion fileVersion,
int index) |
static int |
getPreviewFileCount(FileVersion fileVersion) |
static long |
getPreviewFileSize(FileVersion fileVersion,
int index) |
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 |
isSupported(String mimeType) |
static void |
trigger(FileVersion sourceFileVersion,
FileVersion destinationFileVersion) |
public static void generateImages(FileVersion sourceFileVersion, FileVersion destinationFileVersion) throws Exception
Exception
public static PDFProcessor getPDFProcessor()
public static InputStream getPreviewAsStream(FileVersion fileVersion, int index) throws Exception
Exception
public static int getPreviewFileCount(FileVersion fileVersion)
public static long getPreviewFileSize(FileVersion fileVersion, int index) throws Exception
Exception
public static InputStream getThumbnailAsStream(FileVersion fileVersion, int index) throws Exception
Exception
public static long getThumbnailFileSize(FileVersion fileVersion, int index) throws Exception
Exception
public static boolean hasImages(FileVersion fileVersion)
public static boolean isDocumentSupported(FileVersion fileVersion)
public static boolean isDocumentSupported(String mimeType)
public static boolean isSupported(String mimeType)
public static void trigger(FileVersion sourceFileVersion, FileVersion destinationFileVersion)