com.liferay.portlet.documentlibrary.util
Interface PDFProcessor
public interface PDFProcessor
PREVIEW_TYPE
static final String PREVIEW_TYPE
- See Also:
- Constant Field Values
THUMBNAIL_TYPE
static final String THUMBNAIL_TYPE
- See Also:
- Constant Field Values
exportGeneratedFiles
void exportGeneratedFiles(PortletDataContext portletDataContext,
FileEntry fileEntry,
Element fileEntryElement)
throws Exception
- Throws:
Exception
generateImages
void generateImages(FileVersion fileVersion)
throws Exception
- Throws:
Exception
getGlobalSearchPath
String getGlobalSearchPath()
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
getResourceLimitsProperties
Properties getResourceLimitsProperties()
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)
isImageMagickEnabled
boolean isImageMagickEnabled()
throws Exception
- Throws:
Exception
isSupported
boolean isSupported(String mimeType)
reset
void reset()
throws Exception
- Throws:
Exception
trigger
void trigger(FileVersion fileVersion)